chore(deps): update msrv to v1.75

This commit is contained in:
renovate[bot] 2023-12-28 16:47:51 +00:00 committed by GitHub
parent 45a880d9f8
commit 13eedae59e
5 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,4 @@
msrv = "1.70.0" # MSRV msrv = "1.75" # MSRV
warn-on-all-wildcard-imports = true warn-on-all-wildcard-imports = true
allow-expect-in-tests = true allow-expect-in-tests = true
allow-unwrap-in-tests = true allow-unwrap-in-tests = true

View file

@ -49,7 +49,7 @@ jobs:
- name: No-default features - name: No-default features
run: cargo test --workspace --no-default-features run: cargo test --workspace --no-default-features
msrv: msrv:
name: "Check MSRV: 1.70.0" name: "Check MSRV: 1.75"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -57,7 +57,7 @@ jobs:
- name: Install Rust - name: Install Rust
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: "1.70" # MSRV toolchain: "1.75" # MSRV
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: Default features - name: Default features
run: cargo check --workspace --all-targets run: cargo check --workspace --all-targets
@ -119,7 +119,7 @@ jobs:
- name: Install Rust - name: Install Rust
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
with: with:
toolchain: "1.70" # MSRV toolchain: "1.75" # MSRV
components: clippy components: clippy
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: Install SARIF tools - name: Install SARIF tools

View file

@ -9,7 +9,7 @@ resolver = "2"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
repository = "https://github.com/crate-ci/typos" repository = "https://github.com/crate-ci/typos"
edition = "2021" edition = "2021"
rust-version = "1.70.0" # MSRV rust-version = "1.75" # MSRV
include = [ include = [
"build.rs", "build.rs",
"src/**/*", "src/**/*",

View file

@ -239,7 +239,7 @@ impl TypeEngineConfig {
for (type_name, engine) in source.patterns.iter() { for (type_name, engine) in source.patterns.iter() {
self.patterns self.patterns
.entry(type_name.to_owned()) .entry(type_name.to_owned())
.or_insert_with(GlobEngineConfig::default) .or_default()
.update(engine); .update(engine);
} }
} }

View file

@ -211,7 +211,7 @@ fn proper_word_variants() -> HashMap<&'static str, HashSet<&'static str>> {
.map(|v| v.word) .map(|v| v.word)
.collect(); .collect();
for variant in variants.iter() { 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)); set.extend(variants.iter().filter(|v| *v != variant));
} }
} }