chore: add missing matches_with implementation
@@ -130,7 +130,7 @@ impl <T: Debug + Display + PartialEq + Clone> Matches<&Vec<T>> for &Vec<T> {
}
}
-impl Matches<&[u8]> for &Vec<u8> {
+impl Matches<&[u8]> for Vec<u8> {
fn matches_with(&self, actual: &[u8], matcher: &MatchingRule) -> anyhow::Result<()> {
let result = match matcher {
MatchingRule::Regex(regex) => {
@@ -188,6 +188,12 @@ impl Matches<&[u8]> for &Vec<u8> {
}
}
+impl Matches<&[u8]> for &Vec<u8> {
+ fn matches_with(&self, actual: &[u8], matcher: &MatchingRule) -> anyhow::Result<()> {
+ (*self).matches_with(actual, matcher)
+ }
+}
+
/// Trait to convert a expected or actual complex object into a string that can be used for a mismatch
pub trait DisplayForMismatch {
/// Return a string representation that can be used in a mismatch to display to the user
