We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b59897 commit a03ae99Copy full SHA for a03ae99
src/boxed.rs
@@ -12,7 +12,6 @@
12
use std::fmt;
13
14
use crate::reflection;
15
-use crate::utils;
16
use crate::Predicate;
17
18
/// `Predicate` that wraps another `Predicate` as a trait object, allowing
@@ -73,7 +72,7 @@ where
73
72
}
74
75
fn find_case<'a>(&'a self, expected: bool, variable: &Item) -> Option<reflection::Case<'a>> {
76
- utils::default_find_case(self, expected, variable)
+ self.0.find_case(expected, variable)
77
78
79
@@ -132,7 +131,7 @@ mod test {
132
131
let p2 = p1.boxed();
133
match (p1.find_case(false, &4), p2.find_case(false, &4)) {
134
(Some(c1), Some(c2)) => {
135
- assert_ne!(format!("{c1:?}"), format!("{c2:?}"));
+ assert_eq!(format!("{c1:?}"), format!("{c2:?}"));
136
137
_ => {
138
panic!();
0 commit comments