]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/useless_attribute.fixed
Fix `#[expect]` for `clippy::ptr_arg`
[rust.git] / tests / ui / useless_attribute.fixed
index a5fcde768f18344ed7684116e0ce5f9aeeb52ee5..c23231a99e9f049015d44694fbd8d58ee2b8c1c3 100644 (file)
@@ -42,7 +42,7 @@ mod a {
     mod b {
         #[allow(dead_code)]
         #[allow(unreachable_pub)]
-        pub struct C {}
+        pub struct C;
     }
 
     #[allow(unreachable_pub)]
@@ -57,6 +57,12 @@ pub use std::io::prelude::*;
 #[allow(clippy::enum_glob_use)]
 pub use std::cmp::Ordering::*;
 
+// don't lint on clippy::redundant_pub_crate
+mod c {
+    #[allow(clippy::redundant_pub_crate)]
+    pub(crate) struct S;
+}
+
 fn test_indented_attr() {
     #![allow(clippy::almost_swapped)]
     use std::collections::HashSet;