Fix uninlined-format-args

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-02 00:15:02 +00:00 committed by June 🍓🦴
parent 14039d9df4
commit 9e51525c25
14 changed files with 59 additions and 123 deletions

View file

@ -135,7 +135,7 @@ impl From<Infallible> for Error {
}
impl fmt::Debug for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{}", self) }
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{self}") }
}
#[derive(Clone)]

View file

@ -127,9 +127,9 @@ mod tests {
};
// cargo test -- --nocapture
println!("{}", SAMPLE);
println!("{SAMPLE}");
println!("{}", sanitize_filename::sanitize_with_options(SAMPLE, options.clone()));
println!("{:?}", SAMPLE);
println!("{SAMPLE:?}");
println!("{:?}", sanitize_filename::sanitize_with_options(SAMPLE, options.clone()));
assert_eq!(SANITISED, sanitize_filename::sanitize_with_options(SAMPLE, options.clone()));