diff --git a/src/types.rs b/src/types.rs index ac14e5c7..86f5dcdd 100644 --- a/src/types.rs +++ b/src/types.rs @@ -112,6 +112,6 @@ mod test { data_start: 0, external_attributes: 0, }; - assert_eq!(data.file_name_sanitized().to_str().unwrap(), "path/etc/passwd"); + assert_eq!(data.file_name_sanitized(), ::std::path::PathBuf::from("path/etc/passwd")); } }