add #include

This commit is contained in:
Mark
2023-11-15 17:55:07 +01:00
parent e851559016
commit 39951a59e9
16 changed files with 283 additions and 60 deletions

View File

@@ -268,6 +268,15 @@ impl info::Local for Local {
None => None,
}
}
fn duplicate(&self) -> Self {
Self {
vars: self
.vars
.iter()
.map(|v| Arc::new(RwLock::new(v.read().unwrap().clone())))
.collect(),
}
}
}
impl info::Local for CheckLocal {
type VariableIdentifier = usize;
@@ -290,4 +299,7 @@ impl info::Local for CheckLocal {
None => None,
}
}
fn duplicate(&self) -> Self {
self.clone()
}
}