fix(clippy): remove unnecessary `to_string()`

This commit is contained in:
winstxnhdw 2024-06-27 15:16:54 +08:00
parent 0f3660747c
commit c6f5bc3862
No known key found for this signature in database
GPG Key ID: 28C6693A1379DAE9
1 changed files with 2 additions and 6 deletions

View File

@ -176,12 +176,8 @@ fn test_format_generation(texname: &str, fmtname: &str, sha256: &str) {
let observed = info.write_digest.unwrap();
if observed != want_digest {
println!(
"expected {} to have SHA256 = {}",
fmtname,
want_digest.to_string()
);
println!("instead, got {}", observed.to_string());
println!("expected {} to have SHA256 = {}", fmtname, want_digest);
println!("instead, got {}", observed);
panic!();
}
}