diff --git a/src/matcher/mod.rs b/src/matcher/mod.rs index 947dce0..c1ac263 100644 --- a/src/matcher/mod.rs +++ b/src/matcher/mod.rs @@ -308,7 +308,7 @@ mod tests { match _match.content { MatchContentType::Image(content) => { - assert_eq!(content.path, "/path/to/file"); + assert_eq!(content.path, PathBuf::from("/path/to/file")); }, _ => { assert!(false);