radicle: Apply clippy suggestions
`cargo clippy --all --all-targets` is warning that there are multiple redundant clones. Apply the suggestions by removing the calls to `clone`. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
parent
2584ecdb0a
commit
199fa07a79
|
|
@ -1417,10 +1417,7 @@ mod test {
|
||||||
doc.delegate(eve.public_key());
|
doc.delegate(eve.public_key());
|
||||||
|
|
||||||
// Update with both Bob and Alice's signature.
|
// Update with both Bob and Alice's signature.
|
||||||
let revision = identity
|
let revision = identity.update("Add eve", "", &doc, &alice).unwrap();
|
||||||
.update("Add eve", "", &doc, &alice)
|
|
||||||
.unwrap()
|
|
||||||
.clone();
|
|
||||||
identity.accept(&revision, &bob).unwrap();
|
identity.accept(&revision, &bob).unwrap();
|
||||||
|
|
||||||
// Update description again with signatures by Eve and Bob.
|
// Update description again with signatures by Eve and Bob.
|
||||||
|
|
|
||||||
|
|
@ -1458,7 +1458,7 @@ mod test {
|
||||||
"Blah blah blah.",
|
"Blah blah blah.",
|
||||||
&[],
|
&[],
|
||||||
&[],
|
&[],
|
||||||
[embed1.clone(), embed2.clone()],
|
[embed1, embed2],
|
||||||
&node.signer,
|
&node.signer,
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
|
||||||
|
|
@ -324,8 +324,7 @@ impl<T: Cob + cob::Evaluate<R>, R> Transaction<T, R> {
|
||||||
{
|
{
|
||||||
let actions = NonEmpty::from_vec(self.actions)
|
let actions = NonEmpty::from_vec(self.actions)
|
||||||
.expect("Transaction::commit: transaction must not be empty");
|
.expect("Transaction::commit: transaction must not be empty");
|
||||||
let Updated { head, object, .. } =
|
let Updated { head, object, .. } = store.update(id, msg, actions, self.embeds, signer)?;
|
||||||
store.update(id, msg, actions.clone(), self.embeds, signer)?;
|
|
||||||
|
|
||||||
Ok((object.object, head))
|
Ok((object.object, head))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue