From ecd6158108381786128b745903f1f341d195bc4b Mon Sep 17 00:00:00 2001 From: Danila Gorelko Date: Mon, 12 Aug 2024 17:53:09 +0300 Subject: [PATCH] Add trivially_copy_pass_by_ref allowance --- src/forms/bookmarks.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/forms/bookmarks.rs b/src/forms/bookmarks.rs index e425856..525d5bf 100644 --- a/src/forms/bookmarks.rs +++ b/src/forms/bookmarks.rs @@ -40,6 +40,7 @@ impl TryFrom for InsertBookmark { } } +#[allow(clippy::trivially_copy_pass_by_ref)] fn not_empty(value: &str, _: &()) -> garde::Result { if value.is_empty() { Err(garde::Error::new("cannot be empty"))