This commit is contained in:
ntr
2019-02-19 13:38:21 +11:00
parent fcb8bf779e
commit 8a9fa4b6fb
2 changed files with 2 additions and 36 deletions
+2 -2
View File
@@ -129,8 +129,8 @@ impl Vbox {
}
pub fn drop(&mut self, i: usize) -> Result<&mut Vbox, Error> {
self.free.get(i).ok_or(format_err!("no var at index {:?}", i))?;
self.free.remove(i);
self.bound.get(i).ok_or(format_err!("no var at index {:?}", i))?;
self.bound.remove(i);
// balance update
Ok(self)
}