deps: replace lru with schnellru (#1217)

* deps: replace lru with schnellru

* bring the peace to the galaxy
This commit is contained in:
ordian
2023-08-28 19:04:11 +02:00
committed by GitHub
parent 7125f65fe6
commit c168a77e26
32 changed files with 207 additions and 241 deletions
+1 -7
View File
@@ -22,7 +22,7 @@
#![deny(missing_docs)]
use std::{num::NonZeroUsize, pin::Pin};
use std::pin::Pin;
use bounded_vec::BoundedVec;
use futures::Future;
@@ -143,12 +143,6 @@ impl SessionWindowSize {
}
}
impl From<SessionWindowSize> for NonZeroUsize {
fn from(value: SessionWindowSize) -> Self {
NonZeroUsize::new(value.get() as usize).expect("SessionWindowSize can't be 0. qed.")
}
}
/// The cumulative weight of a block in a fork-choice rule.
pub type BlockWeight = u32;