From f1ba43b618c9ef471a5ae37f5af9900f9b3bf03f Mon Sep 17 00:00:00 2001 From: ADD-SP Date: Sat, 25 Apr 2026 10:22:09 -0700 Subject: [PATCH 1/2] chore(Cargo.lock): bump `rust-webpki` from `0.103.12` to `0.103.13` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` Crate: rustls-webpki Version: 0.103.12 Title: Reachable panic in certificate revocation list parsing Date: 2026-04-22 ID: RUSTSEC-2026-0104 URL: https://rustsec.org/advisories/RUSTSEC-2026-0104 Solution: Upgrade to >=0.103.13, <0.104.0-alpha.1 OR >=0.104.0-alpha.7 Dependency tree: rustls-webpki 0.103.12 ├── rustls-platform-verifier 0.6.2 │ └── reqwest 0.13.2 │ └── clawshell 0.2.1 └── rustls 0.23.37 ├── tokio-rustls 0.26.4 │ ├── reqwest 0.13.2 │ └── hyper-rustls 0.27.7 │ └── reqwest 0.13.2 ├── rustls-platform-verifier 0.6.2 ├── reqwest 0.13.2 ├── quinn-proto 0.11.14 │ └── quinn 0.11.9 │ └── reqwest 0.13.2 ├── quinn 0.11.9 ├── hyper-rustls 0.27.7 └── clawshell 0.2.1 error: 1 vulnerability found! ``` --- Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a63accd..54be9d4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1847,9 +1847,9 @@ checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" [[package]] name = "rustls-webpki" -version = "0.103.12" +version = "0.103.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8279bb85272c9f10811ae6a6c547ff594d6a7f3c6c6b02ee9726d1d0dcfcdd06" +checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" dependencies = [ "aws-lc-rs", "ring", From 08f87b63b36ae93e322fb48d182adb253f6e74b5 Mon Sep 17 00:00:00 2001 From: ADD-SP Date: Sat, 25 Apr 2026 10:39:51 -0700 Subject: [PATCH 2/2] style: satisfy clippy `collapsible_match` and `while_let_loop` lints --- src/onboard/credentials.rs | 10 +++------- src/translate.rs | 12 ++---------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/onboard/credentials.rs b/src/onboard/credentials.rs index 09ecc51..395c3e6 100644 --- a/src/onboard/credentials.rs +++ b/src/onboard/credentials.rs @@ -423,13 +423,9 @@ fn remove_profile_references_from_value( } removed } - Value::String(v) => { - if removed_profile_ids.contains(v) { - *value = Value::Null; - 1 - } else { - 0 - } + Value::String(v) if removed_profile_ids.contains(v) => { + *value = Value::Null; + 1 } _ => 0, } diff --git a/src/translate.rs b/src/translate.rs index cd5f652..1abca5a 100644 --- a/src/translate.rs +++ b/src/translate.rs @@ -384,11 +384,7 @@ impl TranslateStream { } fn process_buffered_lines(&mut self) { - loop { - let Some(pos) = self.buffer.iter().position(|&b| b == b'\n') else { - break; - }; - + while let Some(pos) = self.buffer.iter().position(|&b| b == b'\n') { let line_bytes = self.buffer.split_to(pos + 1); let line = String::from_utf8_lossy(&line_bytes).trim().to_string(); @@ -547,11 +543,7 @@ impl DlpSseStream { } fn process_buffered_lines(&mut self) { - loop { - let Some(pos) = self.buffer.iter().position(|&b| b == b'\n') else { - break; - }; - + while let Some(pos) = self.buffer.iter().position(|&b| b == b'\n') { let line_bytes = self.buffer.split_to(pos + 1); let line = String::from_utf8_lossy(&line_bytes).trim().to_string();