Skip to content

Commit 3a95261

Browse files
committed
Suppress a warning from the latest clippy
1 parent 50b4865 commit 3a95261

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
#![deny(missing_copy_implementations)]
1313
#![deny(missing_debug_implementations)]
1414
#![warn(missing_docs)]
15+
// Because we run clippy on both nightly and 1.4.60
16+
#![allow(clippy::unknown_clippy_lints)]
17+
#![allow(clippy::if_then_panic)] // Too pedantic
1518

1619
// Re-exported external crates
1720
pub use libc;

test/test.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Because we run clippy on both nightly and 1.4.60
2+
#![allow(clippy::unknown_clippy_lints)]
3+
#![allow(clippy::if_then_panic)] // Too pedantic
4+
15
#[macro_use]
26
extern crate cfg_if;
37
#[cfg_attr(not(target_os = "redox"), macro_use)]

0 commit comments

Comments
 (0)