Skip to content

Commit 5632f80

Browse files
committed
clippy
1 parent 0ef16e5 commit 5632f80

File tree

1 file changed

+1
-1
lines changed
  • substrate/frame/conviction-voting/src

1 file changed

+1
-1
lines changed

substrate/frame/conviction-voting/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
502502
);
503503
prior.accumulate(unlock_at, balance)
504504
}
505-
} else if v.1.as_standard().is_some_and(|s| s == !approved) {
505+
} else if v.1.as_standard().is_some_and(|s| s != approved) {
506506
// Unsuccessful vote, use special hook to lock the funds too in case of
507507
// conviction.
508508
if let Some(to_lock) =

0 commit comments

Comments
 (0)