File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ impl<T: Unpin> Event<T> {
347
347
348
348
if let Some ( inner) = self . try_inner ( ) {
349
349
let limit = if notify. is_additional ( ) {
350
- usize:: MAX
350
+ core :: usize:: MAX
351
351
} else {
352
352
notify. count ( )
353
353
} ;
@@ -949,6 +949,7 @@ impl<T> State<T> {
949
949
}
950
950
951
951
/// If this state was notified, return the tag associated with the notification.
952
+ #[ allow( unused) ]
952
953
fn notified ( self ) -> Option < T > {
953
954
match self {
954
955
Self :: Notified { tag, .. } => Some ( tag) ,
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ use core::num::NonZeroUsize;
31
31
use core:: ops;
32
32
use core:: pin:: Pin ;
33
33
34
+ use alloc:: boxed:: Box ;
34
35
use alloc:: vec:: Vec ;
35
36
36
37
impl < T : Unpin > crate :: Inner < T > {
Original file line number Diff line number Diff line change @@ -323,8 +323,8 @@ macro_rules! impl_for_numeric_types {
323
323
type Tag = ( ) ;
324
324
type Notify = Notify ;
325
325
326
+ #[ allow( unused_comparisons) ]
326
327
fn into_notification( self ) -> Self :: Notify {
327
- #[ allow( unused_comparisons) ]
328
328
if self < 0 {
329
329
panic!( "negative notification count" ) ;
330
330
}
You can’t perform that action at this time.
0 commit comments