clippy: Fix a few warnings

This commit is contained in:
cloudhead 2024-06-20 15:10:39 +02:00
parent 3260046c67
commit 6f91f2fb8f
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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)