Placate clippy: use clone_into (#2037)

This commit is contained in:
Casey Rodarmor 2024-05-14 18:05:55 -07:00 committed by GitHub
parent d18bdef799
commit 6d7de0a480
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,7 @@ impl Test {
}
pub(crate) fn current_dir(mut self, path: impl AsRef<Path>) -> Self {
self.current_dir = path.as_ref().to_owned();
path.as_ref().clone_into(&mut self.current_dir);
self
}