Skip to content

Commit 23a34be

Browse files
taiki-ecramertj
authored andcommitted
Use #![deny(rust_2018_idioms)]
1 parent 6ec12f8 commit 23a34be

File tree

10 files changed

+10
-8
lines changed

10 files changed

+10
-8
lines changed

futures-channel/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#![cfg_attr(not(feature = "std"), no_std)]
99

1010
#![warn(missing_docs, missing_debug_implementations)]
11-
#![deny(bare_trait_objects)]
11+
#![deny(rust_2018_idioms)]
1212

1313
#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.12/futures_channel")]
1414

futures-core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#![cfg_attr(not(feature = "std"), no_std)]
77

88
#![warn(missing_docs, missing_debug_implementations)]
9-
#![deny(bare_trait_objects)]
9+
#![deny(rust_2018_idioms)]
1010

1111
#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.12/futures_core")]
1212

futures-executor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![cfg_attr(not(feature = "std"), no_std)]
66

77
#![warn(missing_docs, missing_debug_implementations)]
8-
#![deny(bare_trait_objects)]
8+
#![deny(rust_2018_idioms)]
99

1010
#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.12/futures_executor")]
1111

futures-io/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#![cfg_attr(not(feature = "std"), no_std)]
88

99
#![warn(missing_docs, missing_debug_implementations)]
10-
#![deny(bare_trait_objects)]
10+
#![deny(rust_2018_idioms)]
1111

1212
#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.12/futures_io")]
1313

futures-select-macro/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! The futures-rs `select! macro implementation.
22
33
#![recursion_limit="128"]
4+
#![deny(rust_2018_idioms)]
45

56
extern crate proc_macro;
67

futures-sink/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
#![cfg_attr(not(feature = "std"), no_std)]
77
#![warn(missing_docs, missing_debug_implementations)]
8+
#![deny(rust_2018_idioms)]
89
#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.12/futures_sink")]
910

1011
#![feature(futures_api)]

futures-test/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
futures_api,
77
)]
88
#![warn(missing_docs, missing_debug_implementations)]
9-
#![deny(bare_trait_objects)]
9+
#![deny(rust_2018_idioms)]
1010
#![doc(
1111
html_root_url = "https://rust-lang-nursery.github.io/futures-doc/0.3.0-alpha.5/futures_test"
1212
)]

futures-util/src/compat/compat03as01.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl Current {
128128
Current(task01::current())
129129
}
130130

131-
fn as_waker(&self) -> LocalWakerLt {
131+
fn as_waker(&self) -> LocalWakerLt<'_> {
132132
unsafe {
133133
LocalWakerLt {
134134
inner: task03::LocalWaker::new(NonNull::new_unchecked(self as *const Current as *mut Current)),

futures-util/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#![cfg_attr(not(feature = "std"), no_std)]
99
#![warn(missing_docs, missing_debug_implementations)]
10-
#![deny(bare_trait_objects)]
10+
#![deny(rust_2018_idioms)]
1111

1212
#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.12/futures_util")]
1313

futures/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#![cfg_attr(not(feature = "std"), no_std)]
2727

2828
#![warn(missing_docs, missing_debug_implementations)]
29-
#![deny(bare_trait_objects)]
29+
#![deny(rust_2018_idioms)]
3030

3131
#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.12/futures")]
3232

0 commit comments

Comments
 (0)