Skip to content

Commit

Permalink
clippy: redundant closure
Browse files Browse the repository at this point in the history
Co-authored-by: Imobach González Sosa <igonzalezsosa@suse.com>
  • Loading branch information
mvidner and imobachgs committed Sep 18, 2024
1 parent 1d92587 commit dbeb055
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions rust/agama-server/src/storage/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,7 @@ pub async fn storage_service(dbus: zbus::Connection) -> Result<Router, ServiceEr
)]
async fn get_config(State(state): State<StorageState<'_>>) -> Result<Json<StorageSettings>, Error> {
// StorageSettings is just a wrapper over serde_json::value::RawValue
let settings = state
.client
.get_config()
.await
.map_err(|e| Error::Service(e))?;
let settings = state.client.get_config().await.map_err(Error::Service)?;
Ok(Json(settings))
}

Expand All @@ -155,7 +151,7 @@ async fn set_config(
.client
.set_config(settings)
.await
.map_err(|e| Error::Service(e))?;
.map_err(Error::Service)?;
Ok(Json(()))
}

Expand Down

0 comments on commit dbeb055

Please sign in to comment.