Skip to content

Commit

Permalink
Add trivially_copy_pass_by_ref allowance
Browse files Browse the repository at this point in the history
  • Loading branch information
danilax86 authored and raffomania committed Aug 19, 2024
1 parent 90e136d commit 3d39f79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/forms/bookmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ impl TryFrom<CreateBookmark> 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"))
Expand Down

0 comments on commit 3d39f79

Please sign in to comment.