Commit b50813b 1 parent 5899ee4 commit b50813b Copy full SHA for b50813b
File tree 2 files changed +16
-11
lines changed
2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -451,16 +451,22 @@ where
451
451
{
452
452
pub fn state ( & self ) -> EntryState {
453
453
match self {
454
- Entry :: Fifo ( FifoEntry :: Hit ( _) ) | Entry :: Lru ( LruEntry :: Hit ( _) ) | Entry :: Lfu ( LfuEntry :: Hit ( _) ) => {
455
- EntryState :: Hit
456
- }
457
- Entry :: Fifo ( FifoEntry :: Wait ( _) ) | Entry :: Lru ( LruEntry :: Wait ( _) ) | Entry :: Lfu ( LfuEntry :: Wait ( _) ) => {
458
- EntryState :: Wait
459
- }
460
- Entry :: Fifo ( FifoEntry :: Miss ( _) ) | Entry :: Lru ( LruEntry :: Miss ( _) ) | Entry :: Lfu ( LfuEntry :: Miss ( _) ) => {
461
- EntryState :: Miss
462
- }
463
- _ => unreachable ! ( ) ,
454
+ Entry :: Fifo ( FifoEntry :: Hit ( _) )
455
+ | Entry :: Lru ( LruEntry :: Hit ( _) )
456
+ | Entry :: Lfu ( LfuEntry :: Hit ( _) )
457
+ | Entry :: S3Fifo ( S3FifoEntry :: Hit ( _) ) => EntryState :: Hit ,
458
+ Entry :: Fifo ( FifoEntry :: Wait ( _) )
459
+ | Entry :: Lru ( LruEntry :: Wait ( _) )
460
+ | Entry :: Lfu ( LfuEntry :: Wait ( _) )
461
+ | Entry :: S3Fifo ( S3FifoEntry :: Wait ( _) ) => EntryState :: Wait ,
462
+ Entry :: Fifo ( FifoEntry :: Miss ( _) )
463
+ | Entry :: Lru ( LruEntry :: Miss ( _) )
464
+ | Entry :: Lfu ( LfuEntry :: Miss ( _) )
465
+ | Entry :: S3Fifo ( S3FifoEntry :: Miss ( _) ) => EntryState :: Miss ,
466
+ Entry :: Fifo ( FifoEntry :: Invalid )
467
+ | Entry :: Lru ( LruEntry :: Invalid )
468
+ | Entry :: Lfu ( LfuEntry :: Invalid )
469
+ | Entry :: S3Fifo ( S3FifoEntry :: Invalid ) => unreachable ! ( ) ,
464
470
}
465
471
}
466
472
}
Original file line number Diff line number Diff line change 65
65
//! The handle that does not appear in either the indexer or the eviction container, and has no external owner, will be
66
66
//! destroyed.
67
67
68
- #![ feature( trait_alias) ]
69
68
#![ feature( offset_of) ]
70
69
71
70
pub trait Key : Send + Sync + ' static + std:: hash:: Hash + Eq + Ord { }
You can’t perform that action at this time.
0 commit comments