Skip to content

Commit 88f572f

Browse files
pscottbkchrkianenigma
authored
Improve overall performance (#6699)
* Improve overall performance * Clean up code Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Remove needless :: Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Remove needless :: Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
1 parent d8b1f61 commit 88f572f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,12 @@ decl_module! {
295295
ensure!(!other_signatories.is_empty(), Error::<T>::TooFewSignatories);
296296
let other_signatories_len = other_signatories.len();
297297
ensure!(other_signatories_len < max_sigs, Error::<T>::TooManySignatories);
298-
let signatories = Self::ensure_sorted_and_insert(other_signatories, who.clone())?;
298+
let signatories = Self::ensure_sorted_and_insert(other_signatories, who)?;
299299

300300
let id = Self::multi_account_id(&signatories, 1);
301301

302302
let call_len = call.using_encoded(|c| c.len());
303-
let result = call.dispatch(RawOrigin::Signed(id.clone()).into());
303+
let result = call.dispatch(RawOrigin::Signed(id).into());
304304

305305
result.map(|post_dispatch_info| post_dispatch_info.actual_weight
306306
.map(|actual_weight| weight_of::as_multi_threshold_1::<T>(

0 commit comments

Comments
 (0)