summaryrefslogtreecommitdiffstats
path: root/src/interactive/app_test/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/interactive/app_test/utils.rs')
-rw-r--r--src/interactive/app_test/utils.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/interactive/app_test/utils.rs b/src/interactive/app_test/utils.rs
index ca9841c..1aa1a8c 100644
--- a/src/interactive/app_test/utils.rs
+++ b/src/interactive/app_test/utils.rs
@@ -11,7 +11,6 @@ use petgraph::prelude::NodeIndex;
use std::{
env::temp_dir,
ffi::OsStr,
- ffi::OsString,
fmt,
fs::{copy, create_dir_all, remove_dir, remove_file},
io::ErrorKind,
@@ -272,7 +271,7 @@ pub fn make_add_node<'a>(
) -> impl FnMut(&str, u64, Option<NodeIndex>) -> NodeIndex + 'a {
move |name, size, maybe_from_idx| {
let n = t.add_node(EntryData {
- name: OsString::from(name),
+ name: PathBuf::from(name),
size,
metadata_io_error: false,
});