Skip to content

Commit

Permalink
Merge pull request #103 from artichoke/lopopolo-patch-1
Browse files Browse the repository at this point in the history
Suppress `clippy::const_is_empty` lint violations in tests
  • Loading branch information
lopopolo authored Jul 10, 2024
2 parents 0d06463 + afb5109 commit 2dfe9ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ mod tests {
}

#[test]
#[allow(clippy::const_is_empty)]
fn const_assert_hygiene_assert() {
#[allow(unused_macros)]
macro_rules! assert {
Expand All @@ -529,6 +530,7 @@ mod tests {
}

#[test]
#[allow(clippy::const_is_empty)]
fn const_assert_hygiene_bool() {
#[allow(dead_code)]
#[allow(non_camel_case_types)]
Expand All @@ -537,6 +539,7 @@ mod tests {
}

#[test]
#[allow(clippy::const_is_empty)]
fn const_assert_hygiene_usize() {
#[allow(dead_code)]
#[allow(non_camel_case_types)]
Expand Down

0 comments on commit 2dfe9ae

Please sign in to comment.