File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on : [push, pull_request]
3
3
4
- env :
5
- RUSTFLAGS : -Dwarnings
4
+ # env:
5
+ # RUSTFLAGS: -Dwarnings
6
6
7
7
jobs :
8
8
test :
11
11
strategy :
12
12
matrix :
13
13
rust :
14
- - 1.39.0
15
14
- stable
16
- - beta
17
- - nightly
18
15
steps :
19
16
- uses : actions/checkout@master
20
17
- name : Install Rust
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ impl Future for Delay {
116
116
return Poll :: Ready ( ( ) ) ;
117
117
}
118
118
119
- state. waker . register ( & cx. waker ( ) ) ;
119
+ state. waker . register ( cx. waker ( ) ) ;
120
120
121
121
// Now that we've registered, do the full check of our own internal
122
122
// state. If we've fired the first bit is set, and if we've been
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ impl<T: Ord> Heap<T> {
66
66
67
67
pub fn peek ( & self ) -> Option < & T > {
68
68
self . assert_consistent ( ) ;
69
- self . items . get ( 0 ) . map ( |i| & i. 0 )
69
+ self . items . first ( ) . map ( |i| & i. 0 )
70
70
}
71
71
72
72
pub fn pop ( & mut self ) -> Option < T > {
@@ -191,7 +191,7 @@ impl<T: Ord> Heap<T> {
191
191
}
192
192
}
193
193
194
- for ( i, & ( ref item, _) ) in self . items . iter ( ) . enumerate ( ) {
194
+ for ( i, ( item, _) ) in self . items . iter ( ) . enumerate ( ) {
195
195
if i > 0 {
196
196
assert ! ( * item >= self . items[ ( i - 1 ) / 2 ] . 0 , "bad at index: {}" , i) ;
197
197
}
@@ -272,7 +272,7 @@ mod tests {
272
272
for t in v {
273
273
h. push ( t) ;
274
274
}
275
- return h ;
275
+ h
276
276
}
277
277
278
278
#[ test]
You can’t perform that action at this time.
0 commit comments