Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.

Fix build error due to clippy warning (to_owned -> clone_into) #319

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions directives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Directives {

pub fn maybe_override_build_command(&mut self, maybe_new: &Option<String>) {
if maybe_new.is_some() {
self.build_command = maybe_new.to_owned()
maybe_new.clone_into(&mut self.build_command)
}
}

Expand All @@ -140,7 +140,7 @@ impl Directives {

pub fn maybe_override_interpreter(&mut self, maybe_new: &Option<String>) {
if maybe_new.is_some() {
self.interpreter = maybe_new.to_owned()
maybe_new.clone_into(&mut self.interpreter)
}
}

Expand Down