mirror of
https://github.com/Dummi26/mers.git
synced 2026-04-08 14:56:39 +02:00
add #include
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user