mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-27 23:51:33 +00:00
feat(runtime-core) Instance.exports
takes &self
instead of &mut self
.
There is no reason for `exports` to take a mutable reference.
This commit is contained in:
@ -40,13 +40,13 @@ impl FuncPointer {
|
||||
}
|
||||
|
||||
pub struct ExportIter<'a> {
|
||||
inner: &'a mut InstanceInner,
|
||||
inner: &'a InstanceInner,
|
||||
iter: hash_map::Iter<'a, String, ExportIndex>,
|
||||
module: &'a ModuleInner,
|
||||
}
|
||||
|
||||
impl<'a> ExportIter<'a> {
|
||||
pub(crate) fn new(module: &'a ModuleInner, inner: &'a mut InstanceInner) -> Self {
|
||||
pub(crate) fn new(module: &'a ModuleInner, inner: &'a InstanceInner) -> Self {
|
||||
Self {
|
||||
inner,
|
||||
iter: module.info.exports.iter(),
|
||||
|
Reference in New Issue
Block a user