Skip to content

Commit 45da4a9

Browse files
authored
ci: Update to stable Rust 1.97.1, typos 1.48.0 (#699)
1 parent 93f000b commit 45da4a9

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

  • .github/workflows
  • parley_tests/linebreaking_cases/src

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ env:
33
# version like 1.70. Note that we only specify MAJOR.MINOR and not PATCH so that bugfixes still
44
# come automatically. If the version specified here is no longer the latest stable version,
55
# then please feel free to submit a PR that adjusts it along with the potential clippy fixes.
6-
RUST_STABLE_VER: "1.95" # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7
6+
RUST_STABLE_VER: "1.97.1" # In quotes because otherwise (e.g.) 1.70 would be interpreted as 1.7
77
# The purpose of checking with the minimum supported Rust toolchain is to detect its staleness.
88
# If the compilation fails, then the version specified here needs to be bumped up to reality.
99
# Be sure to also update the rust-version property in the workspace Cargo.toml file,
@@ -431,4 +431,4 @@ jobs:
431431
- uses: actions/checkout@v4
432432

433433
- name: check typos
434-
uses: crate-ci/typos@v1.46.2
434+
uses: crate-ci/typos@v1.48.0

parley_tests/linebreaking_cases/src/lib.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ impl Strategy {
300300
}
301301
// Quoted string: `"word"` or `'word'`.
302302
7 => {
303-
let quote = char::from(*[b'"', b'\''].choose(rng).unwrap());
303+
let quote = char::from(*br#""'"#.choose(rng).unwrap());
304304
out.push(quote);
305305
fill(rng, ALPHANUMERIC, out, 1, 6);
306306
out.push(quote);
@@ -316,7 +316,7 @@ impl Strategy {
316316
// Question followed by a quote: `?"word"` (no break after `?` here).
317317
9 => {
318318
out.push('?');
319-
let quote = char::from(*[b'"', b'\''].choose(rng).unwrap());
319+
let quote = char::from(*br#""'"#.choose(rng).unwrap());
320320
out.push(quote);
321321
fill(rng, ALPHANUMERIC, out, 1, 6);
322322
out.push(quote);
@@ -327,9 +327,7 @@ impl Strategy {
327327
// Various maths operators.
328328
11 => {
329329
fill(rng, ALPHA, out, 1, 5);
330-
out.push(char::from(
331-
*[b'/', b'=', b'<', b'>', b'+', b'*'].choose(rng).unwrap(),
332-
));
330+
out.push(char::from(*b"/=<>+*".choose(rng).unwrap()));
333331
fill(rng, ALPHA, out, 1, 5);
334332
}
335333
_ => unreachable!(),
@@ -383,16 +381,14 @@ impl Strategy {
383381
6 => {
384382
fill(rng, ALPHA, out, 1, 5);
385383
out.push('?');
386-
let quote = char::from(*[b'"', b'\''].choose(rng).unwrap());
384+
let quote = char::from(*br#""'"#.choose(rng).unwrap());
387385
out.push(quote);
388386
fill(rng, ALPHANUMERIC, out, 1, 4);
389387
out.push(quote);
390388
}
391389
7 => {
392390
fill(rng, ALPHANUMERIC, out, 1, 5);
393-
out.push(char::from(
394-
*[b'/', b'.', b':', b';', b','].choose(rng).unwrap(),
395-
));
391+
out.push(char::from(*b"/.:;,".choose(rng).unwrap()));
396392
fill(rng, ALPHANUMERIC, out, 1, 5);
397393
}
398394
8 => {

0 commit comments

Comments
 (0)