Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
  • Loading branch information
Adphi committed Jan 9, 2025
1 parent 2a2642e commit 49b5be3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prost-validate-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion prost-validate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl<T: ?Sized> 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<T: ?Sized + Validator> SafeValidator<'_, T> {
pub fn validate(&self) -> Result {
Validator::validate(self.0)
}
Expand Down

0 comments on commit 49b5be3

Please # to comment.