Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
run: "rustc -vV | sed -n 's|host: ||p'"
if: matrix.os != 'windows-2022'
- name: Install cargo-llvm-cov & cargo-nextest
uses: taiki-e/install-action@a48a50298f98c47e46a957ae6f82c44cc4878e42 # v2.49.47
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
with:
tool: cargo-llvm-cov,cargo-nextest
- name: cargo build
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
- name: target
run: "rustc -vV | sed -n 's|host: ||p'"
- name: Install cargo-nextest
uses: taiki-e/install-action@a48a50298f98c47e46a957ae6f82c44cc4878e42 # v2.49.47
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
with:
tool: cargo-nextest
- name: cargo build
Expand Down Expand Up @@ -310,7 +310,7 @@ jobs:
- name: target
run: "rustc -vV | sed -n 's|host: ||p'"
- name: Install cargo-nextest
uses: taiki-e/install-action@a48a50298f98c47e46a957ae6f82c44cc4878e42 # v2.49.47
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
with:
tool: cargo-nextest
- name: Download wasi-sdk
Expand Down Expand Up @@ -340,7 +340,7 @@ jobs:
rustup toolchain install nightly --component miri
cargo +nightly miri setup
- name: Install cargo-nextest
uses: taiki-e/install-action@a48a50298f98c47e46a957ae6f82c44cc4878e42 # v2.49.47
uses: taiki-e/install-action@d12e869b89167df346dd0ff65da342d1fb1202fb # v2.53.2
with:
tool: cargo-nextest
- name: Test public C api with miri
Expand Down
2 changes: 1 addition & 1 deletion bzip2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@
"\tProbably you can fix this by defining them correctly,\n",
"\tand recompiling. Bye!\n",
);
eprint!("{}", MSG);
eprint!("{MSG}");

Check warning on line 975 in bzip2.rs

View check run for this annotation

Codecov / codecov/patch

bzip2.rs#L975

Added line #L975 was not covered by tests
setExit(3);
exit(exitValue.load(Ordering::SeqCst));
}
Expand Down
20 changes: 10 additions & 10 deletions bzip2recover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl core::fmt::Display for EmitError<'_> {
self.in_filename.display(),
)?;

writeln!(f, "{}", io_error)?;
writeln!(f, "{io_error}")?;

writeln!(
f,
Expand All @@ -150,7 +150,7 @@ impl core::fmt::Display for EmitError<'_> {
self.in_filename.display(),
)?;

writeln!(f, "{}", io_error)?;
writeln!(f, "{io_error}")?;

writeln!(
f,
Expand Down Expand Up @@ -211,7 +211,7 @@ fn main_help(program_name: &Path, in_filename: &Path) -> Result<(), Error> {
};

let mut input_bitstream = BitStream::open_read_stream(input_file);
eprintln!("{}: searching for block boundaries ...", progname);
eprintln!("{progname}: searching for block boundaries ...");

let mut bits_read: u64 = 0;
let mut buff_lo: u32 = 0;
Expand Down Expand Up @@ -278,12 +278,12 @@ fn main_help(program_name: &Path, in_filename: &Path) -> Result<(), Error> {
/*-- identified blocks run from 1 to rbCtr inclusive. --*/

if rb_ctr < 1 {
eprintln!("{}: sorry, I couldn't find any block boundaries.", progname);
eprintln!("{progname}: sorry, I couldn't find any block boundaries.");

return Err(Error::Fatal);
}

eprintln!("{}: splitting into blocks", progname);
eprintln!("{progname}: splitting into blocks");

let Ok(input_file) = std::fs::File::options().read(true).open(in_filename) else {
eprintln!("{}: can't read `{}'", progname, in_filename.display());
Expand Down Expand Up @@ -376,7 +376,7 @@ fn main_help(program_name: &Path, in_filename: &Path) -> Result<(), Error> {
}
}

eprintln!("{}: finished", progname);
eprintln!("{progname}: finished");

Ok(())
}
Expand Down Expand Up @@ -409,7 +409,7 @@ fn main() -> ExitCode {
error,
};

eprint!("{}", emit_error);
eprint!("{emit_error}");

ExitCode::FAILURE
}
Expand All @@ -435,7 +435,7 @@ mod test {
};

let mut buf = String::new();
write!(&mut buf, "{}", emit_error).unwrap();
write!(&mut buf, "{emit_error}").unwrap();

assert_eq!(
buf,
Expand Down Expand Up @@ -470,7 +470,7 @@ mod test {
};

let mut buf = String::new();
write!(&mut buf, "{}", emit_error).unwrap();
write!(&mut buf, "{emit_error}").unwrap();

assert_eq!(
buf,
Expand Down Expand Up @@ -504,7 +504,7 @@ mod test {
};

let mut buf = String::new();
write!(&mut buf, "{}", emit_error).unwrap();
write!(&mut buf, "{emit_error}").unwrap();

assert_eq!(
buf,
Expand Down
2 changes: 1 addition & 1 deletion tests/quick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ mod compress_command {

let output = match cmd.output() {
Ok(output) => output,
Err(err) => panic!("Running {:?} failed with {err:?}", cmd),
Err(err) => panic!("Running {cmd:?} failed with {err:?}"),
};

assert!(
Expand Down
Loading