style(api): reformat two error arms

Pre-existing rustfmt drift on the branch base; `just ci` fails on it
before reaching anything else.
This commit is contained in:
Miguel Palhas
2026-08-25 10:48:56 +01:00
parent 690eaeda5c
commit 50056a2bd9
+2 -10
View File
@@ -734,11 +734,7 @@ async fn remove_library_files(state: &AppState, scope: FileScope) -> Result<(),
Ok(metadata) => metadata,
// Already gone is the state we wanted.
Err(error) if error.kind() == std::io::ErrorKind::NotFound => continue,
Err(error) => {
return Err(ApiError::Filesystem(format!(
"files not removed: {error}"
)))
}
Err(error) => return Err(ApiError::Filesystem(format!("files not removed: {error}"))),
};
let removed = if metadata.is_dir() {
tokio::fs::remove_dir_all(&target).await
@@ -748,11 +744,7 @@ async fn remove_library_files(state: &AppState, scope: FileScope) -> Result<(),
match removed {
Ok(()) => tracing::info!(target = %target.display(), "removed library files"),
Err(error) if error.kind() == std::io::ErrorKind::NotFound => {}
Err(error) => {
return Err(ApiError::Filesystem(format!(
"files not removed: {error}"
)))
}
Err(error) => return Err(ApiError::Filesystem(format!("files not removed: {error}"))),
}
}
Ok(())