chore: fix unused warns in sparse trie (#21546)

This commit is contained in:
Dan Cline
2026-01-28 21:48:59 +00:00
committed by GitHub
parent f5ca71d2fb
commit 2d9cf4c989

View File

@@ -984,9 +984,15 @@ where
/// Will always return false in `no_std` builds.
const fn is_prune_parallelism_enabled(num_tries: usize) -> bool {
#[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.