From 5128c47a492dfe0b10ec9be5af40dee9d2ce36a7 Mon Sep 17 00:00:00 2001 From: "Patrick J.P. Culp" Date: Thu, 4 Jan 2024 00:17:01 +0000 Subject: [PATCH 1/2] sources: fix clippy warnings for 1.75.0 --- sources/api/datastore/src/filesystem.rs | 2 +- sources/models/modeled-types/src/shared.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/api/datastore/src/filesystem.rs b/sources/api/datastore/src/filesystem.rs index 2d9e3a6f3d7..bf89eed783f 100644 --- a/sources/api/datastore/src/filesystem.rs +++ b/sources/api/datastore/src/filesystem.rs @@ -93,7 +93,7 @@ impl FilesystemDataStore { // component, so we don't need the quotes in the filename. let raw_key_name = metadata_key .segments() - .get(0) + .first() .context(error::InternalSnafu { msg: "metadata key with no segments", })?; diff --git a/sources/models/modeled-types/src/shared.rs b/sources/models/modeled-types/src/shared.rs index 272f3cc19ac..ab717050981 100644 --- a/sources/models/modeled-types/src/shared.rs +++ b/sources/models/modeled-types/src/shared.rs @@ -1006,7 +1006,7 @@ impl TryFrom<&str> for PemCertificateString { // Flag to check if the bundle doesn't contain any valid certificate let mut certs_found = false; // Validate each certificate in the bundle - for (_, pem) in x509_parser::pem::Pem::iter_from_buffer(&decoded_bytes).enumerate() { + for pem in x509_parser::pem::Pem::iter_from_buffer(&decoded_bytes) { // Parse buffer into a PEM object, then to a x509 certificate let pem = pem.context(error::InvalidPEMSnafu)?; pem.parse_x509() From 738eb0b7a95533190757144c463f183598bf2d8a Mon Sep 17 00:00:00 2001 From: "Patrick J.P. Culp" Date: Thu, 4 Jan 2024 00:21:09 +0000 Subject: [PATCH 2/2] build: update SDK to 0.37.0 --- Twoliter.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Twoliter.toml b/Twoliter.toml index ec7c0597205..db8500ba01e 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.36.1" +version = "v0.37.0" [toolchain] registry = "public.ecr.aws/bottlerocket" name = "bottlerocket-toolchain" -version = "v0.36.1" +version = "v0.37.0"