Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
clippy: Fix a few warnings
cloudhead committed 1 year ago
commit 6f91f2fb8fc29d8ecac9653411918ab48a6fc44e
parent 3260046c67d03c5b161fcfdb148876e9cb9a0733
2 files changed +2 -2
modified radicle-node/src/wire/protocol.rs
@@ -1328,7 +1328,7 @@ mod test {
                FrameData::Gossip(MessageWithExt {
                    msg,
                    ext,
-
                }) if msg == ann && ext == String::from("extra")
+
                }) if msg == ann && ext == *"extra"
            );
            radicle::assert_matches!(
                de.deserialize_next().unwrap().unwrap().data,
modified radicle/src/storage/git.rs
@@ -1159,7 +1159,7 @@ mod tests {
        //    C1
        //    |
        //    C0
-
        assert_matches!(quorum(&[*b2, *c2, *c2], 2, &repo), Ok(c2));
+
        assert_eq!(quorum(&[*b2, *c2, *c2], 2, &repo).unwrap(), c2);
        assert_matches!(
            quorum(&[*b2, *c2, *c2], 3, &repo),
            Err(QuorumError::NoQuorum)