clippy: Fix a few warnings
This commit is contained in:
parent
3260046c67
commit
6f91f2fb8f
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue