1
0
forked from ROMEO/nexosim

auto-fix clippy::redundant_pattern_matching

This commit is contained in:
Ben-PH 2025-01-22 14:40:17 +01:00
parent ff7d9de5e2
commit c75d92145e

View File

@ -482,7 +482,7 @@ mod tests {
assert!(matches!(c.pop(), Err(PopError::Empty)));
assert!(matches!(p.push(|b| RecycleBox::recycle(b, 42)), Ok(_)));
assert!(p.push(|b| RecycleBox::recycle(b, 42)).is_ok());
p.close();
assert_eq!(*c.pop().unwrap(), 42);
@ -494,7 +494,7 @@ mod tests {
let (p, mut c) = queue(3);
assert_eq!(p.is_closed(), false);
assert!(matches!(p.push(|b| RecycleBox::recycle(b, 42)), Ok(_)));
assert!(p.push(|b| RecycleBox::recycle(b, 42)).is_ok());
c.close();