Skip to content

Commit 204de95

Browse files
committed
change forbid for warnings & unused to deny
a new warning was caused by the `?` operator as it contains `#[allow(unreachable_code)]`, which clashes with the previous `forbid` rule. as `forbid` does not allow `deny` to override it this would cause a compile error, however due to a compiler bug this was previously not reported at all and has now been changed to a warning in a recent(-ish) version of rustc and will eventually become a compile error. with `deny` it's still possible to use `allow`, thus there's no warning see also rust-lang/rust#76053 thanks @jannic
1 parent 2011c21 commit 204de95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
//! * `defmt`: you can enable the `defmt` feature to get a `defmt::Format` implementation for all structs & enums in this crate and a `defmt::debug` call for every speed change.
1515
1616
#![forbid(unsafe_code)]
17-
#![forbid(warnings)]
17+
#![deny(warnings)]
1818
#![forbid(missing_docs)]
1919
#![forbid(missing_debug_implementations)]
20-
#![forbid(unused)]
20+
#![deny(unused)]
2121
#![no_std]
2222

2323
#[cfg(feature = "defmt")]

0 commit comments

Comments
 (0)