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 committed Aug 12, 2024
1 parent 5654efd commit ecd6158
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 ecd6158

Please sign in to comment.