mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
Update dependencies to get rid of the yanked deps (#4994)
* Initial attempt to upgrade hashbrown to latest to get rid of the crate warnings. * Replace `.expect()` usage with use of `const`. * Update ahash 0.7 as well * Remove unsafe code. * Update `lru` to 0.12 and fix release test errors. * Set non-blocking socket * Bump testcontainers to 0.15. * Fix lint --------- Co-authored-by: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -100,6 +100,7 @@ pub mod sqlite;
|
||||
|
||||
pub mod blob_sidecar;
|
||||
pub mod light_client_header;
|
||||
pub mod non_zero_usize;
|
||||
|
||||
use ethereum_types::{H160, H256};
|
||||
|
||||
|
||||
8
consensus/types/src/non_zero_usize.rs
Normal file
8
consensus/types/src/non_zero_usize.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use std::num::NonZeroUsize;
|
||||
|
||||
pub const fn new_non_zero_usize(x: usize) -> NonZeroUsize {
|
||||
match NonZeroUsize::new(x) {
|
||||
Some(n) => n,
|
||||
None => panic!("Expected a non zero usize."),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user