From 7682da81ff4c775eca048aaf0586593fb159cb85 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 23 Sep 2025 17:17:28 +0200 Subject: chore(crates/rocie-client): Regenerate --- crates/rocie-client/src/apis/api_set_unit_api.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/rocie-client/src/apis/api_set_unit_api.rs') diff --git a/crates/rocie-client/src/apis/api_set_unit_api.rs b/crates/rocie-client/src/apis/api_set_unit_api.rs index e894fc3..dc88775 100644 --- a/crates/rocie-client/src/apis/api_set_unit_api.rs +++ b/crates/rocie-client/src/apis/api_set_unit_api.rs @@ -24,7 +24,7 @@ pub enum RegisterUnitError { } -pub async fn register_unit(configuration: &configuration::Configuration, unit_stub: models::UnitStub) -> Result> { +pub async fn register_unit(configuration: &configuration::Configuration, unit_stub: models::UnitStub) -> Result> { // add a prefix to parameters to efficiently prevent name collisions let p_unit_stub = unit_stub; @@ -51,8 +51,8 @@ pub async fn register_unit(configuration: &configuration::Configuration, unit_st let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `uuid::Uuid`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `uuid::Uuid`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UnitId`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UnitId`")))), } } else { let content = resp.text().await?; -- cgit 1.4.1