From 3478443b9fa4f808d3d2cd925fac9e8ae941d085 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 23 Apr 2023 19:01:11 +0200 Subject: [PATCH] Clippy fixes --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8810bad..d143735 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,7 @@ impl Display for ParseDurationError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { ParseDurationError::InvalidRegex(err) => { - write!(f, "Invalid regex for time pattern: {}", err) + write!(f, "Invalid regex for time pattern: {err}") } ParseDurationError::InvalidInput => { write!( @@ -265,7 +265,7 @@ mod tests { #[test] fn test_invalid_input() { let result = from_str("foobar"); - println!("{:?}", result); + println!("{result:?}"); match result { Err(ParseDurationError::InvalidInput) => assert!(true), _ => assert!(false),