diff --git a/src/utils.rs b/src/utils.rs index f8e3405..3da1ee3 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -148,7 +148,7 @@ where { struct StringOrNumberVisitor(std::marker::PhantomData); - impl<'de, T> Visitor<'de> for StringOrNumberVisitor + impl Visitor<'_> for StringOrNumberVisitor where T: FromStr + Copy, T::Err: fmt::Display, diff --git a/src/wallet/test/utils/helpers.rs b/src/wallet/test/utils/helpers.rs index d68cc69..ef3a334 100644 --- a/src/wallet/test/utils/helpers.rs +++ b/src/wallet/test/utils/helpers.rs @@ -1,5 +1,6 @@ use super::*; +/// Panic if the given expression doesn't match the provided pattern, logging the unexpected result #[macro_export] macro_rules! assert_matches { ($expression:expr, $pattern:pat $(if $guard:expr)? $(,)?) => {