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
allow-expect-in-tests = true
allow-unwrap-in-tests = true

View file

@ -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

View file

@ -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/**/*",

View file

@ -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);
}
}

View file

@ -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));
}
}