diff --git a/Twoliter.toml b/Twoliter.toml index c52f30fe7a6..10381780532 100644 --- a/Twoliter.toml +++ b/Twoliter.toml @@ -3,9 +3,9 @@ schema-version = 1 [sdk] registry = "public.ecr.aws/bottlerocket" name = "bottlerocket-sdk" -version = "v0.34.1" +version = "v0.35.0" [toolchain] registry = "public.ecr.aws/bottlerocket" name = "bottlerocket-toolchain" -version = "v0.34.1" +version = "v0.35.0" diff --git a/sources/api/datastore/src/memory.rs b/sources/api/datastore/src/memory.rs index c89974ebe03..4ffc397912f 100644 --- a/sources/api/datastore/src/memory.rs +++ b/sources/api/datastore/src/memory.rs @@ -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(()) diff --git a/sources/updater/updog/src/bin/updata.rs b/sources/updater/updog/src/bin/updata.rs index f8347272a69..6cb4be0e510 100644 --- a/sources/updater/updog/src/bin/updata.rs +++ b/sources/updater/updog/src/bin/updata.rs @@ -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 }), } }