mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 11:23:25 +00:00
Use clone_from
in OSDK instead of assigning clones
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
b4a357a971
commit
ee740020d0
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user