Use clone_from in OSDK instead of assigning clones

This commit is contained in:
Zhang Junyang
2024-05-03 22:25:52 +08:00
committed by Tate, Hongliang Tian
parent b4a357a971
commit ee740020d0
5 changed files with 12 additions and 12 deletions

View File

@ -53,10 +53,10 @@ impl Qemu {
impl QemuScheme {
pub fn inherit(&mut self, from: &Self) {
if self.args.is_none() {
self.args = from.args.clone();
self.args.clone_from(&from.args);
}
if self.path.is_none() {
self.path = from.path.clone();
self.path.clone_from(&from.path);
}
}