diff --git a/src/core/method.rs b/src/core/method.rs index 8c40266..f4872c4 100644 --- a/src/core/method.rs +++ b/src/core/method.rs @@ -31,7 +31,7 @@ impl fmt::Display for Method { Method::Alphabet => "Alphabet", Method::Combined => "Combined", }; - write!(f, "{}", name) + write!(f, "{name}") } } diff --git a/src/error.rs b/src/error.rs index 79cec51..9caacac 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,13 +12,13 @@ impl Display for ParseError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { ParseError::Script(val) => { - write!(f, "Cannot parse str into whatlang::Script: {:?}", val) + write!(f, "Cannot parse str into whatlang::Script: {val:?}") } ParseError::Lang(val) => { - write!(f, "Cannot parse str into whatlang::Lang: {:?}", val) + write!(f, "Cannot parse str into whatlang::Lang: {val:?}") } ParseError::Method(val) => { - write!(f, "Cannot parse str into whatlang::Method: {:?}", val) + write!(f, "Cannot parse str into whatlang::Method: {val:?}") } } }