mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 23:21:06 +00:00
deps: replace lru with schnellru (#1217)
* deps: replace lru with schnellru * bring the peace to the galaxy
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user