From cdcabd62b36f646dd544e4fcfc188ee93822d863 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 7 Aug 2025 13:27:44 +0000 Subject: [PATCH 1/2] chore(deps): Update Rust Stable to v1.89 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f482ff3..bd8dd45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,7 +90,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - toolchain: "1.88" # STABLE + toolchain: "1.89" # STABLE - uses: Swatinem/rust-cache@v2 - name: Check documentation env: @@ -105,7 +105,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - toolchain: "1.88" # STABLE + toolchain: "1.89" # STABLE components: rustfmt - uses: Swatinem/rust-cache@v2 - name: Check formatting @@ -121,7 +121,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - toolchain: "1.88" # STABLE + toolchain: "1.89" # STABLE components: clippy - uses: Swatinem/rust-cache@v2 - name: Install SARIF tools From 4404288a2b13b1213ab3ed1bc24419f120b6a07d Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 7 Aug 2025 09:57:49 -0500 Subject: [PATCH 2/2] style: Make clippy happy --- src/git2_config.rs | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/git2_config.rs b/src/git2_config.rs index b598d6a..8d0415a 100644 --- a/src/git2_config.rs +++ b/src/git2_config.rs @@ -421,38 +421,6 @@ pub(crate) trait Parseable: Sized { fn parse(s: &str) -> anyhow::Result; } -pub(crate) struct ParseWrapper(pub(crate) T); - -impl std::fmt::Display for ParseWrapper { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - self.0.fmt(f) - } -} - -impl std::str::FromStr for ParseWrapper -where - T: std::str::FromStr, - T::Err: Into, -{ - type Err = anyhow::Error; - - fn from_str(s: &str) -> Result { - T::from_str(s).map(ParseWrapper).map_err(|e| e.into()) - } -} - -impl Parseable for ParseWrapper -where - T: Parseable, - T: std::str::FromStr, - T: std::fmt::Display, - T::Err: Into, -{ - fn parse(s: &str) -> anyhow::Result { - ::from_str(s) - } -} - pub(crate) trait Field { type Output;