new implementations and one less lifetime bug
Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
parent
0a14ea7182
commit
e6bb732f18
2 changed files with 12 additions and 1 deletions
|
|
@ -49,6 +49,10 @@ impl<'a> FTable<'a> {
|
|||
pub fn remove(&self, id: String) {
|
||||
self.0.remove(&id);
|
||||
}
|
||||
|
||||
pub fn new() -> FTable<'a> {
|
||||
FTable{0: HashMap::<String, Box<Function>>::new()}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue