Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
greyblake committed May 31, 2024
1 parent e4d742e commit 1525c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dummy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use nutype::nutype;

#[nutype(
sanitize(with = |v| v),
validate(predicate = |v| v.len() > 0)
validate(predicate = |v| !v.is_empty() )
)]
struct NonEmptyVec<T>(Vec<T>);

Expand Down

0 comments on commit 1525c8d

Please sign in to comment.