Skip to content

Commit

Permalink
sources: fix clippy warnings for 1.73.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jpculp committed Oct 13, 2023
1 parent c3e7a9e commit 664fb57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sources/api/datastore/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl DataStore for MemoryDataStore {
// Clone data key because we want the HashMap key type to be Key, not &Key, and we
// can't pass ownership because we only have a reference from our parameters.
.entry(data_key.clone())
.or_insert_with(HashMap::new);
.or_default();

metadata_for_data.insert(metadata_key.clone(), value.as_ref().to_owned());
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion sources/updater/updog/src/bin/updata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ fn main_inner() -> Result<()> {
match cmd.cmd {
Command::Init(args) => {
match update_metadata::write_file(&args.file, &Manifest::default()) {
Ok(_) => Ok(()),
Ok(()) => Ok(()),
Err(e) => Err(error::Error::UpdateMetadata { source: e }),
}
}
Expand Down

0 comments on commit 664fb57

Please sign in to comment.