Skip to content

Commit

Permalink
Suppress clippy warning needless_borrows_for_generic_args for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Dec 13, 2023
1 parent 423ef0b commit 7e8f264
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spdlog/src/formatter/pattern_formatter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1249,13 +1249,15 @@ pub mod tests {

#[test]
fn test_pattern_ref_as_pattern() {
#[allow(clippy::needless_borrow)]
#[allow(unknown_lints)]
#[allow(clippy::needless_borrow, clippy::needless_borrows_for_generic_args)]
test_pattern(&String::from("literal"), "literal", None);
}

#[test]
fn test_pattern_mut_as_pattern() {
#[allow(clippy::needless_borrow)]
#[allow(unknown_lints)]
#[allow(clippy::needless_borrow, clippy::needless_borrows_for_generic_args)]
test_pattern(&mut String::from("literal"), "literal", None);
}

Expand Down

0 comments on commit 7e8f264

Please sign in to comment.