Sfoglia il codice sorgente

chore: silence false positive clippy warning

Dirkjan Ochtman 6 anni fa
parent
commit
a46bec6e54
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      idna/tests/uts46.rs

+ 1 - 0
idna/tests/uts46.rs

@@ -114,6 +114,7 @@ pub fn collect_tests<F: FnMut(String, TestFn)>(add_test: &mut F) {
     }
     }
 }
 }
 
 
+#[allow(clippy::redundant_clone)]
 fn check<F>(source: &str, expected: (&str, &[&str]), actual: Result<String, Errors>, ignore: F)
 fn check<F>(source: &str, expected: (&str, &[&str]), actual: Result<String, Errors>, ignore: F)
 where
 where
     F: Fn(&str) -> bool,
     F: Fn(&str) -> bool,