diff --git a/prost-validate-types/src/lib.rs b/prost-validate-types/src/lib.rs index d816d96..742761c 100644 --- a/prost-validate-types/src/lib.rs +++ b/prost-validate-types/src/lib.rs @@ -86,7 +86,7 @@ trait IsTrueExt { fn is_true(&self) -> bool; } -impl<'a> IsTrueExt for Cow<'a, Value> { +impl IsTrueExt for Cow<'_, Value> { fn is_true(&self) -> bool { self.as_bool().unwrap_or(false) } diff --git a/prost-validate/src/lib.rs b/prost-validate/src/lib.rs index 0b19c62..3975491 100644 --- a/prost-validate/src/lib.rs +++ b/prost-validate/src/lib.rs @@ -45,7 +45,7 @@ impl NoopValidator for T {} pub struct SafeValidator<'a, T: ?Sized>(pub &'a T); // Implement the `validate` method only for types that implement the Validator trait. -impl<'a, T: ?Sized + Validator> SafeValidator<'a, T> { +impl SafeValidator<'_, T> { pub fn validate(&self) -> Result { Validator::validate(self.0) }