diff --git a/examples/extract.rs b/examples/extract.rs index 5aa67570..8eeee9f6 100644 --- a/examples/extract.rs +++ b/examples/extract.rs @@ -19,7 +19,7 @@ fn real_main() -> i32 { for i in 0..archive.len() { let mut file = archive.by_index(i).unwrap(); let outpath = match file.name_as_child() { - Some(path) => path, + Some(path) => path.to_owned(), None => continue, };