Skip to content

Commit 260e357

Browse files
committed
lints: Warn rather than deny by default
We check with `-Dwarnings` in CI, so these still get checked. This change serves to prevent failures to compile downstream if the lint expectations are not met on untested targets.
1 parent 2324acf commit 260e357

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
#![cfg_attr(feature = "rustc-dep-of-std", feature(link_cfg, no_core))]
2323
#![cfg_attr(feature = "rustc-dep-of-std", allow(internal_features))]
2424
// Enable extra lints:
25-
#![cfg_attr(feature = "extra_traits", deny(missing_debug_implementations))]
26-
#![deny(missing_copy_implementations, safe_packed_borrows)]
25+
#![cfg_attr(feature = "extra_traits", warn(missing_debug_implementations))]
26+
#![warn(missing_copy_implementations, safe_packed_borrows)]
2727
#![cfg_attr(not(feature = "rustc-dep-of-std"), no_std)]
2828
#![cfg_attr(feature = "rustc-dep-of-std", no_core)]
2929

0 commit comments

Comments
 (0)