Skip to content

Commit 2d7b4b6

Browse files
committed
Appease clippy
1 parent 98dabac commit 2d7b4b6

File tree

1 file changed

+3
-0
lines changed
  • library/std/src/prelude

1 file changed

+3
-0
lines changed

library/std/src/prelude/v1.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ mod ambiguous_macro_only_std {
6666
mod vec {}
6767
#[allow(hidden_glob_reexports)]
6868
mod panic {}
69+
// Building std without the allow exported_private_dependencies will create warnings, but then
70+
// clippy claims its a useless_attribute. So silence both.
71+
#[allow(clippy::useless_attribute)]
6972
#[allow(exported_private_dependencies)]
7073
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
7174
pub use crate::*;

0 commit comments

Comments
 (0)