From 13eedae59e898f5f030df27458ee898a460611ce Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 16:47:51 +0000 Subject: [PATCH] chore(deps): update msrv to v1.75 --- .clippy.toml | 2 +- .github/workflows/ci.yml | 6 +++--- Cargo.toml | 2 +- crates/typos-cli/src/config.rs | 2 +- crates/typos-dict/tests/verify.rs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.clippy.toml b/.clippy.toml index e88edc9..2197d8a 100644 --- a/.clippy.toml +++ b/.clippy.toml @@ -1,4 +1,4 @@ -msrv = "1.70.0" # MSRV +msrv = "1.75" # MSRV warn-on-all-wildcard-imports = true allow-expect-in-tests = true allow-unwrap-in-tests = true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c02bd23..5c2652d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: - name: No-default features run: cargo test --workspace --no-default-features msrv: - name: "Check MSRV: 1.70.0" + name: "Check MSRV: 1.75" runs-on: ubuntu-latest steps: - name: Checkout repository @@ -57,7 +57,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - toolchain: "1.70" # MSRV + toolchain: "1.75" # MSRV - uses: Swatinem/rust-cache@v2 - name: Default features run: cargo check --workspace --all-targets @@ -119,7 +119,7 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable with: - toolchain: "1.70" # MSRV + toolchain: "1.75" # MSRV components: clippy - uses: Swatinem/rust-cache@v2 - name: Install SARIF tools diff --git a/Cargo.toml b/Cargo.toml index 5289d16..5388dff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ resolver = "2" license = "MIT OR Apache-2.0" repository = "https://github.com/crate-ci/typos" edition = "2021" -rust-version = "1.70.0" # MSRV +rust-version = "1.75" # MSRV include = [ "build.rs", "src/**/*", diff --git a/crates/typos-cli/src/config.rs b/crates/typos-cli/src/config.rs index 9a0bf2b..564521b 100644 --- a/crates/typos-cli/src/config.rs +++ b/crates/typos-cli/src/config.rs @@ -239,7 +239,7 @@ impl TypeEngineConfig { for (type_name, engine) in source.patterns.iter() { self.patterns .entry(type_name.to_owned()) - .or_insert_with(GlobEngineConfig::default) + .or_default() .update(engine); } } diff --git a/crates/typos-dict/tests/verify.rs b/crates/typos-dict/tests/verify.rs index 56a601e..0755716 100644 --- a/crates/typos-dict/tests/verify.rs +++ b/crates/typos-dict/tests/verify.rs @@ -211,7 +211,7 @@ fn proper_word_variants() -> HashMap<&'static str, HashSet<&'static str>> { .map(|v| v.word) .collect(); for variant in variants.iter() { - let set = words.entry(variant).or_insert_with(HashSet::new); + let set = words.entry(variant).or_default(); set.extend(variants.iter().filter(|v| *v != variant)); } }