Skip to content
Snippets Groups Projects
Commit a4693f4b authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix(#176): clippy

parent 13c6b2c5
No related branches found
No related tags found
1 merge request!232Resolve "PromotedToSmith is issued even for Smith"
Pipeline #35607 passed
......@@ -445,7 +445,7 @@ impl<T: Config> Pallet<T> {
Self::deposit_event(Event::<T>::SmithCertAdded { receiver, issuer });
// - receiving a certification either lead us to Pending or Smith status
let previous_status = smith_meta.status.clone();
let previous_status = smith_meta.status;
smith_meta.status =
if smith_meta.received_certs.len() >= T::MinCertForMembership::get() as usize {
// - if the number of certification received by the receiver is enough, win the Smith status (or keep it)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment