Skip to content

Commit caea9b1

Browse files
authored
Add clippy configuration file (#2301)
1 parent 7ce5ce8 commit caea9b1

File tree

11 files changed

+1
-58
lines changed

11 files changed

+1
-58
lines changed

.clippy.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msrv = "1.36"

futures-channel/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@
1414
// It cannot be included in the published code because this lints have false positives in the minimum required version.
1515
#![cfg_attr(test, warn(single_use_lifetimes))]
1616
#![warn(clippy::all)]
17-
18-
// mem::take requires Rust 1.40, matches! requires Rust 1.42
19-
// Can be removed if the minimum supported version increased or if https://github.com/rust-lang/rust-clippy/issues/3941
20-
// get's implemented.
21-
#![allow(clippy::mem_replace_with_default, clippy::match_like_matches_macro)]
22-
2317
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
2418

2519
#[cfg(all(feature = "cfg-target-has-atomic", not(feature = "unstable")))]

futures-core/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
// It cannot be included in the published code because this lints have false positives in the minimum required version.
99
#![cfg_attr(test, warn(single_use_lifetimes))]
1010
#![warn(clippy::all)]
11-
12-
// mem::take requires Rust 1.40, matches! requires Rust 1.42
13-
// Can be removed if the minimum supported version increased or if https://github.com/rust-lang/rust-clippy/issues/3941
14-
// get's implemented.
15-
#![allow(clippy::mem_replace_with_default, clippy::match_like_matches_macro)]
16-
1711
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
1812

1913
#[cfg(all(feature = "cfg-target-has-atomic", not(feature = "unstable")))]

futures-executor/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99
// It cannot be included in the published code because this lints have false positives in the minimum required version.
1010
#![cfg_attr(test, warn(single_use_lifetimes))]
1111
#![warn(clippy::all)]
12-
13-
// mem::take requires Rust 1.40, matches! requires Rust 1.42
14-
// Can be removed if the minimum supported version increased or if https://github.com/rust-lang/rust-clippy/issues/3941
15-
// get's implemented.
16-
#![allow(clippy::mem_replace_with_default, clippy::match_like_matches_macro)]
17-
1812
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
1913

2014
#![cfg_attr(docsrs, feature(doc_cfg))]

futures-io/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
// It cannot be included in the published code because this lints have false positives in the minimum required version.
1717
#![cfg_attr(test, warn(single_use_lifetimes))]
1818
#![warn(clippy::all)]
19-
20-
// mem::take requires Rust 1.40, matches! requires Rust 1.42
21-
// Can be removed if the minimum supported version increased or if https://github.com/rust-lang/rust-clippy/issues/3941
22-
// get's implemented.
23-
#![allow(clippy::mem_replace_with_default, clippy::match_like_matches_macro)]
24-
2519
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
2620

2721
#![cfg_attr(docsrs, feature(doc_cfg))]

futures-macro/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
// It cannot be included in the published code because this lints have false positives in the minimum required version.
66
#![cfg_attr(test, warn(single_use_lifetimes))]
77
#![warn(clippy::all)]
8-
9-
// mem::take requires Rust 1.40, matches! requires Rust 1.42
10-
// Can be removed if the minimum supported version increased or if https://github.com/rust-lang/rust-clippy/issues/3941
11-
// get's implemented.
12-
#![allow(clippy::mem_replace_with_default, clippy::match_like_matches_macro)]
13-
148
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
159

1610
// Since https://github.com/rust-lang/cargo/pull/7700 `proc_macro` is part of the prelude for

futures-sink/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
// It cannot be included in the published code because this lints have false positives in the minimum required version.
99
#![cfg_attr(test, warn(single_use_lifetimes))]
1010
#![warn(clippy::all)]
11-
12-
// mem::take requires Rust 1.40, matches! requires Rust 1.42
13-
// Can be removed if the minimum supported version increased or if https://github.com/rust-lang/rust-clippy/issues/3941
14-
// get's implemented.
15-
#![allow(clippy::mem_replace_with_default, clippy::match_like_matches_macro)]
16-
1711
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
1812

1913
#[cfg(feature = "alloc")]

futures-task/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
// It cannot be included in the published code because this lints have false positives in the minimum required version.
99
#![cfg_attr(test, warn(single_use_lifetimes))]
1010
#![warn(clippy::all)]
11-
12-
// mem::take requires Rust 1.40, matches! requires Rust 1.42
13-
// Can be removed if the minimum supported version increased or if https://github.com/rust-lang/rust-clippy/issues/3941
14-
// get's implemented.
15-
#![allow(clippy::mem_replace_with_default, clippy::match_like_matches_macro)]
16-
1711
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
1812

1913
#[cfg(all(feature = "cfg-target-has-atomic", not(feature = "unstable")))]

futures-test/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
// It cannot be included in the published code because this lints have false positives in the minimum required version.
55
#![cfg_attr(test, warn(single_use_lifetimes))]
66
#![warn(clippy::all)]
7-
8-
// mem::take requires Rust 1.40, matches! requires Rust 1.42
9-
// Can be removed if the minimum supported version increased or if https://github.com/rust-lang/rust-clippy/issues/3941
10-
// get's implemented.
11-
#![allow(clippy::mem_replace_with_default, clippy::match_like_matches_macro)]
12-
137
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
148

159
#[cfg(not(feature = "std"))]

futures-util/src/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
// It cannot be included in the published code because this lints have false positives in the minimum required version.
1515
#![cfg_attr(test, warn(single_use_lifetimes))]
1616
#![warn(clippy::all)]
17-
// mem::take requires Rust 1.40, matches! requires Rust 1.42
18-
// Can be removed if the minimum supported version increased or if https://github.com/rust-lang/rust-clippy/issues/3941
19-
// get's implemented.
20-
#![allow(clippy::mem_replace_with_default, clippy::match_like_matches_macro)]
2117
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
2218
#![cfg_attr(docsrs, feature(doc_cfg))]
2319

futures/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@
8787
// It cannot be included in the published code because this lints have false positives in the minimum required version.
8888
#![cfg_attr(test, warn(single_use_lifetimes))]
8989
#![warn(clippy::all)]
90-
91-
// mem::take requires Rust 1.40, matches! requires Rust 1.42
92-
// Can be removed if the minimum supported version increased or if https://github.com/rust-lang/rust-clippy/issues/3941
93-
// get's implemented.
94-
#![allow(clippy::mem_replace_with_default, clippy::match_like_matches_macro)]
95-
9690
#![doc(test(attr(deny(warnings), allow(dead_code, unused_assignments, unused_variables))))]
9791

9892
#![cfg_attr(docsrs, feature(doc_cfg))]

0 commit comments

Comments
 (0)