Skip to content

Commit 566d91c

Browse files
committed
cargo clippy
1 parent 9fbcbba commit 566d91c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pallets/subtensor/src/subnets/registration.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,10 @@ impl<T: Config> Pallet<T> {
522522
let can_prune_non_immune = free_count > min_free;
523523

524524
// Prefer non‑immune if allowed; otherwise fall back to immune.
525-
if can_prune_non_immune {
526-
if let Some((_, _, uid)) = best_non_immune {
525+
if can_prune_non_immune
526+
&& let Some((_, _, uid)) = best_non_immune {
527527
return Some(uid);
528528
}
529-
}
530529
best_immune.map(|(_, _, uid)| uid)
531530
}
532531

0 commit comments

Comments
 (0)