mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
chore: fix unused warns in sparse trie (#21546)
This commit is contained in:
@@ -984,9 +984,15 @@ where
|
|||||||
/// Will always return false in `no_std` builds.
|
/// Will always return false in `no_std` builds.
|
||||||
const fn is_prune_parallelism_enabled(num_tries: usize) -> bool {
|
const fn is_prune_parallelism_enabled(num_tries: usize) -> bool {
|
||||||
#[cfg(not(feature = "std"))]
|
#[cfg(not(feature = "std"))]
|
||||||
return false;
|
{
|
||||||
|
let _ = num_tries;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
num_tries >= Self::PARALLEL_PRUNE_THRESHOLD
|
#[cfg(feature = "std")]
|
||||||
|
{
|
||||||
|
num_tries >= Self::PARALLEL_PRUNE_THRESHOLD
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Prunes the account trie and selected storage tries to reduce memory usage.
|
/// Prunes the account trie and selected storage tries to reduce memory usage.
|
||||||
|
|||||||
Reference in New Issue
Block a user