diff --git a/agent/src/utils.rs b/agent/src/utils.rs index 803b93dad9..385baade03 100644 --- a/agent/src/utils.rs +++ b/agent/src/utils.rs @@ -27,8 +27,7 @@ pub fn split_path_inclusive(path: &Path, target: &str) -> Option<(PathBuf, PathB } if found { - let second: PathBuf = iter.collect(); - Some((first, second)) + Some((first, PathBuf::new())) } else { None }