diff --git a/src/main.rs b/src/main.rs index 8403602..f843c71 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,8 +89,8 @@ fn freeze_repos(dir: &str) -> anyhow::Result<()> { ) { let path = entry .path() - .to_string_lossy() - .strip_prefix(&dir) + .strip_prefix(Path::new(dir))? + .to_str() .unwrap() .to_string(); repos.insert(