From 036e09199b99685c6fe3569e304ada6a49a4338d Mon Sep 17 00:00:00 2001 From: Dominik Schrempf Date: Sat, 22 Jun 2024 20:12:42 +0200 Subject: [PATCH] fix build error due to clippy warning (to_owned -> clone_into) --- directives/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/directives/src/lib.rs b/directives/src/lib.rs index 54a076c4..60fb4026 100644 --- a/directives/src/lib.rs +++ b/directives/src/lib.rs @@ -122,7 +122,7 @@ impl Directives { pub fn maybe_override_build_command(&mut self, maybe_new: &Option) { if maybe_new.is_some() { - self.build_command = maybe_new.to_owned() + maybe_new.clone_into(&mut self.build_command) } } @@ -140,7 +140,7 @@ impl Directives { pub fn maybe_override_interpreter(&mut self, maybe_new: &Option) { if maybe_new.is_some() { - self.interpreter = maybe_new.to_owned() + maybe_new.clone_into(&mut self.interpreter) } }