Skip to content

Commit 1b38812

Browse files
committed
Silence unhelpful lints without any muxes
1 parent e70b536 commit 1b38812

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@
142142
rust_2018_idioms,
143143
unreachable_pub
144144
)]
145+
#![cfg_attr(
146+
not(any(feature = "process-mux", feature = "native-mux")),
147+
allow(unused_variables, unreachable_code, unused_imports, dead_code)
148+
)]
145149
// only enables the nightly `doc_cfg` feature when
146150
// the `docsrs` configuration attribute is defined
147151
#![cfg_attr(docsrs, feature(doc_cfg))]

0 commit comments

Comments
 (0)