mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 20:58:28 +00:00
Revert Table::get method to return Option
This commit is contained in:
2
lib/api/src/externals/table.rs
vendored
2
lib/api/src/externals/table.rs
vendored
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user