mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 15:42:23 -05:00
chore(deps): update msrv to v1.75
This commit is contained in:
parent
45a880d9f8
commit
13eedae59e
5 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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/**/*",
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue