Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
davepacheco committed Oct 17, 2023
1 parent df11c57 commit 4795b36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev-tools/omdb/src/bin/omdb/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ async fn inv_collection_print(
);
println!(
"done: {}",
humantime::format_rfc3339_millis(c.time_done.into()).to_string()
humantime::format_rfc3339_millis(c.time_done.into())
);

Ok(())
Expand Down
4 changes: 1 addition & 3 deletions nexus/db-queries/src/db/datastore/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,7 @@ impl DataStore {
)
.load_async(&*conn)
.await
.map_err(|e| {
public_error_from_diesel(e.into(), ErrorHandler::Server)
})
.map_err(|e| public_error_from_diesel(e, ErrorHandler::Server))
.internal_context("listing oldest collections")?;

if u32::try_from(candidates.len()).unwrap() <= nkeep {
Expand Down

0 comments on commit 4795b36

Please sign in to comment.