Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: Apply clippy suggestions
Fintan Halpenny committed 2 years ago
commit 199fa07a79cbf189ff7e901c331f524f909affb5
parent 2584ecdb0a3891eeb8e89080507d44cb49c81327
3 files changed +3 -7
modified radicle/src/cob/identity.rs
@@ -1417,10 +1417,7 @@ mod test {
        doc.delegate(eve.public_key());

        // Update with both Bob and Alice's signature.
-
        let revision = identity
-
            .update("Add eve", "", &doc, &alice)
-
            .unwrap()
-
            .clone();
+
        let revision = identity.update("Add eve", "", &doc, &alice).unwrap();
        identity.accept(&revision, &bob).unwrap();

        // Update description again with signatures by Eve and Bob.
modified radicle/src/cob/issue.rs
@@ -1458,7 +1458,7 @@ mod test {
                "Blah blah blah.",
                &[],
                &[],
-
                [embed1.clone(), embed2.clone()],
+
                [embed1, embed2],
                &node.signer,
            )
            .unwrap();
modified radicle/src/cob/store.rs
@@ -324,8 +324,7 @@ impl<T: Cob + cob::Evaluate<R>, R> Transaction<T, R> {
    {
        let actions = NonEmpty::from_vec(self.actions)
            .expect("Transaction::commit: transaction must not be empty");
-
        let Updated { head, object, .. } =
-
            store.update(id, msg, actions.clone(), self.embeds, signer)?;
+
        let Updated { head, object, .. } = store.update(id, msg, actions, self.embeds, signer)?;

        Ok((object.object, head))
    }