mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
chore: Update MSRV
This commit is contained in:
parent
05edccea2e
commit
4f17586d08
6 changed files with 11 additions and 12 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -69,7 +69,7 @@ jobs:
|
|||
- name: No-default features
|
||||
run: cargo test --workspace --no-default-features
|
||||
msrv:
|
||||
name: "Check MSRV: 1.53.0"
|
||||
name: "Check MSRV: 1.54.0"
|
||||
needs: smoke
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -78,7 +78,7 @@ jobs:
|
|||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: 1.53.0 # MSRV
|
||||
toolchain: 1.54.0 # MSRV
|
||||
profile: minimal
|
||||
override: true
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
|
@ -133,7 +133,7 @@ jobs:
|
|||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: 1.53.0 # MSRV
|
||||
toolchain: 1.54.0 # MSRV
|
||||
profile: minimal
|
||||
override: true
|
||||
components: clippy
|
||||
|
|
2
.github/workflows/codegen.yml
vendored
2
.github/workflows/codegen.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: 1.53.0 # MSRV
|
||||
toolchain: 1.54.0 # MSRV
|
||||
profile: minimal
|
||||
override: true
|
||||
components: rustfmt
|
||||
|
|
4
.github/workflows/rust-next.yml
vendored
4
.github/workflows/rust-next.yml
vendored
|
@ -57,9 +57,9 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
rust:
|
||||
- 1.53.0 # MSRV
|
||||
- 1.54.0 # MSRV
|
||||
- stable
|
||||
continue-on-error: ${{ matrix.rust != '1.53.0' }} # MSRV
|
||||
continue-on-error: ${{ matrix.rust != '1.54.0' }} # MSRV
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
|
@ -90,7 +90,7 @@ fn generate_variations<W: std::io::Write>(file: &mut W) {
|
|||
None
|
||||
} else {
|
||||
referenced_symbols.extend(data.iter().map(|(s, _)| s));
|
||||
let value = generate_link(&data);
|
||||
let value = generate_link(data);
|
||||
Some((*word, value))
|
||||
}
|
||||
}),
|
||||
|
@ -165,7 +165,7 @@ fn entries() -> BTreeMap<String, varcon_core::Entry> {
|
|||
.filter(|e| {
|
||||
e.variants
|
||||
.iter()
|
||||
.all(|v| typos::tokens::Word::new(&v.word, 0).is_ok())
|
||||
.all(|v| typos::tokens::Word::new(v.word, 0).is_ok())
|
||||
})
|
||||
.map(|e| {
|
||||
let mut e = e.into_owned();
|
||||
|
|
|
@ -720,6 +720,7 @@ impl<'s> Iterator for SplitIdent<'s> {
|
|||
type Item = Word<'s>;
|
||||
|
||||
fn next(&mut self) -> Option<Word<'s>> {
|
||||
#[allow(clippy::while_let_on_iterator)]
|
||||
while let Some((i, c)) = self.char_indices.next() {
|
||||
let cur_mode = WordMode::classify(c);
|
||||
if cur_mode == WordMode::Boundary {
|
||||
|
|
|
@ -39,8 +39,7 @@ A Cv: acknowledgment's / Av B C: acknowledgement's
|
|||
|
||||
",
|
||||
);
|
||||
let all: Vec<_> = iter.collect();
|
||||
assert_eq!(all.len(), 1);
|
||||
assert_eq!(iter.count(), 1);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -58,8 +57,7 @@ A Cv: acknowledgment's / Av B C: acknowledgement's
|
|||
|
||||
",
|
||||
);
|
||||
let all: Vec<_> = iter.collect();
|
||||
assert_eq!(all.len(), 2);
|
||||
assert_eq!(iter.count(), 2);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue