From 1525c8dfb5672a97bc24c13fe679235b4de47916 Mon Sep 17 00:00:00 2001 From: Serhii Potapov Date: Fri, 31 May 2024 21:57:20 +0200 Subject: [PATCH] Fix clippy --- dummy/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dummy/src/main.rs b/dummy/src/main.rs index 606991c..7a78a95 100644 --- a/dummy/src/main.rs +++ b/dummy/src/main.rs @@ -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(Vec);