Revert Table::get method to return Option

This commit is contained in:
Mark McCaskey
2021-02-19 07:42:48 -08:00
parent 3b7f8d71a9
commit 0b34d0d86d
5 changed files with 13 additions and 21 deletions

View File

@@ -71,7 +71,7 @@ impl Table {
pub fn get(&self, index: u32) -> Option<Val> {
// TODO: review change to make inner table return a trap in Result, maybe we don't
// want that
let item = self.table.get(index).ok()?;
let item = self.table.get(index)?;
Some(ValFuncRef::from_table_reference(item, &self.store))
}