mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-19 03:41:22 +00:00
Merge #341
341: feat(runtime-core) `Instance.exports` takes `&self` instead of `&mut self` r=lachlansneff a=Hywan There is no reason for `exports` to take a mutable reference. This patch rewrites the `Instance.export` signature a little bit. Co-authored-by: Ivan Enderlin <ivan.enderlin@hoa-project.net>
This commit is contained in:
@ -285,8 +285,8 @@ impl Instance {
|
||||
|
||||
/// Returns an iterator over all of the items
|
||||
/// exported from this instance.
|
||||
pub fn exports(&mut self) -> ExportIter {
|
||||
ExportIter::new(&self.module, &mut self.inner)
|
||||
pub fn exports(&self) -> ExportIter {
|
||||
ExportIter::new(&self.module, &self.inner)
|
||||
}
|
||||
|
||||
/// The module used to instantiate this Instance.
|
||||
|
Reference in New Issue
Block a user