From 6d7de0a480a309675ca2eb50a4ce5e36e63d26c5 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Tue, 14 May 2024 18:05:55 -0700 Subject: [PATCH] Placate clippy: use `clone_into` (#2037) --- tests/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }