diff --git a/tests/test.rs b/tests/test.rs index 2a3a6ac..ccbba92 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -95,7 +95,7 @@ impl Test { } pub(crate) fn current_dir(mut self, path: impl AsRef) -> Self { - self.current_dir = path.as_ref().to_owned(); + path.as_ref().clone_into(&mut self.current_dir); self }