Skip to content

Commit 91d631d

Browse files
committed
Ignore warnings and clippy lints
Signed-off-by: Nico Burns <[email protected]>
1 parent 314117b commit 91d631d

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

tendril/examples/fuzz.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
//! A simple fuzz tester for the library.
88
99
#![deny(warnings)]
10+
#![allow(clippy::redundant_static_lifetimes)]
11+
#![allow(clippy::needless_borrow)]
12+
#![allow(clippy::borrow_deref_ref)]
1013

1114
extern crate rand;
1215
extern crate tendril;

tendril/src/lib.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,29 @@
66

77
#![cfg_attr(all(test, feature = "bench"), feature(test))]
88
//#![cfg_attr(test, deny(warnings))]
9+
#![allow(unnecessary_transmutes)]
10+
#![allow(bare_trait_objects)]
11+
#![allow(clippy::ptr_offset_with_cast)]
12+
#![allow(clippy::needless_lifetimes)]
13+
#![allow(clippy::needless_late_init)]
14+
#![allow(clippy::explicit_auto_deref)]
15+
#![allow(clippy::result_unit_err)]
16+
#![allow(clippy::op_ref)]
17+
#![allow(clippy::missing_safety_doc)]
18+
#![allow(clippy::missing_transmute_annotations)]
19+
#![allow(clippy::partialeq_ne_impl)]
20+
#![allow(clippy::legacy_numeric_constants)]
21+
#![allow(clippy::collapsible_if)]
22+
#![allow(clippy::wrong_self_convention)]
23+
#![allow(clippy::len_zero)]
24+
#![allow(clippy::transmute_bytes_to_str)]
25+
#![allow(clippy::match_like_matches_macro)]
26+
#![allow(clippy::redundant_static_lifetimes)]
27+
#![allow(clippy::redundant_field_names)]
28+
#![allow(clippy::unusual_byte_groupings)]
29+
#![allow(clippy::borrow_deref_ref)]
30+
#![allow(clippy::needless_return)]
31+
#![allow(clippy::while_let_loop)]
932

1033
#[macro_use]
1134
extern crate debug_unreachable;

tendril/src/stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ mod test {
605605
#[cfg(any(feature = "encoding", feature = "encoding_rs"))]
606606
pub type Tests = &'static [(&'static [&'static [u8]], &'static str, usize)];
607607

608-
#[cfg(any(feature = "encoding"))]
608+
#[cfg(feature = "encoding")]
609609
const ASCII: Tests = &[
610610
(&[], "", 0),
611611
(&[b""], "", 0),

0 commit comments

Comments
 (0)