File tree 4 files changed +11
-16
lines changed
4 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 7
7
- staging
8
8
- trying
9
9
10
+ env :
11
+ RUSTFLAGS : -Dwarnings
12
+
10
13
jobs :
11
14
build_and_test :
12
15
name : Build and test
13
16
runs-on : ${{ matrix.os }}
14
- env :
15
- RUSTFLAGS : -Dwarnings
16
17
strategy :
17
18
matrix :
18
19
os : [ubuntu-latest, windows-latest, macOS-latest]
48
49
check_fmt_and_docs :
49
50
name : Checking fmt and docs
50
51
runs-on : ubuntu-latest
51
- env :
52
- RUSTFLAGS : -Dwarnings
53
52
steps :
54
53
- uses : actions/checkout@master
55
54
@@ -81,19 +80,11 @@ jobs:
81
80
clippy_check :
82
81
name : Clippy check
83
82
runs-on : ubuntu-latest
84
- # TODO: There is a lot of warnings
85
- # env:
86
- # RUSTFLAGS: -Dwarnings
87
83
steps :
88
84
- uses : actions/checkout@v1
89
- - id : component
90
- uses : actions-rs/components-nightly@v1
91
- with :
92
- component : clippy
93
- - uses : actions-rs/toolchain@v1
94
- with :
95
- toolchain : ${{ steps.component.outputs.toolchain }}
96
- override : true
97
- - run : rustup component add clippy
85
+ - name : Install rust
86
+ run : rustup update beta && rustup default beta && rustup
87
+ - name : Install clippy
88
+ run : rustup component add clippy
98
89
- name : clippy
99
90
run : cargo clippy --all --features unstable
Original file line number Diff line number Diff line change 43
43
44
44
#![ cfg_attr( feature = "docs" , feature( doc_cfg) ) ]
45
45
#![ warn( missing_docs, missing_debug_implementations, rust_2018_idioms) ]
46
+ #![ allow( clippy:: mutex_atomic, clippy:: module_inception) ]
46
47
#![ doc( test( attr( deny( rust_2018_idioms, warnings) ) ) ) ]
47
48
#![ doc( test( attr( allow( unused_extern_crates, unused_variables) ) ) ) ]
48
49
#![ doc( html_logo_url = "https://async.rs/images/logo--hero.svg" ) ]
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ pub use crate::stream::Stream;
75
75
/// assert_eq!(5, counter.len());
76
76
/// # });
77
77
/// ```
78
+ #[ allow( clippy:: len_without_is_empty) ] // ExactSizeIterator::is_empty is unstable
78
79
#[ cfg( feature = "unstable" ) ]
79
80
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
80
81
pub trait ExactSizeStream : Stream {
Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ impl Tag {
167
167
}
168
168
169
169
pub fn task ( & self ) -> & Task {
170
+ #[ allow( clippy:: transmute_ptr_to_ptr) ]
170
171
unsafe {
171
172
let raw = self . raw_metadata . load ( Ordering :: Acquire ) ;
172
173
@@ -189,6 +190,7 @@ impl Tag {
189
190
}
190
191
}
191
192
193
+ #[ allow( clippy:: transmute_ptr_to_ptr) ]
192
194
mem:: transmute :: < & AtomicUsize , & Option < Task > > ( & self . raw_metadata )
193
195
. as_ref ( )
194
196
. unwrap ( )
You can’t perform that action at this time.
0 commit comments