diff --git a/apps/local-qa-runtime/evidence-stager/src/lib.rs b/apps/local-qa-runtime/evidence-stager/src/lib.rs index 3e11fd93f..31df15174 100644 --- a/apps/local-qa-runtime/evidence-stager/src/lib.rs +++ b/apps/local-qa-runtime/evidence-stager/src/lib.rs @@ -527,7 +527,9 @@ fn remove_empty_parents(root: &Path, attempt_path: &Path) -> Result<(), StagerEr let mut current = attempt_path.to_path_buf(); while current != root { match fs::remove_dir(¤t) { - Ok(()) => current.pop(), + Ok(()) => { + let _ = current.pop(); + } Err(error) if error.kind() == std::io::ErrorKind::NotFound || error.kind() == std::io::ErrorKind::DirectoryNotEmpty => break, Err(_) => return Err(StagerError::Cleanup), }