mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-05-24 05:01:34 +00:00
Merge pull request #107 from paritytech/exportentry_field_mut
field_mut better return &mut String
This commit is contained in:
commit
c01769f76f
@ -67,7 +67,7 @@ impl ExportEntry {
|
|||||||
pub fn field(&self) -> &str { &self.field_str }
|
pub fn field(&self) -> &str { &self.field_str }
|
||||||
|
|
||||||
/// Public name (mutable)
|
/// Public name (mutable)
|
||||||
pub fn field_mut(&mut self) -> &mut str { &mut self.field_str }
|
pub fn field_mut(&mut self) -> &mut String { &mut self.field_str }
|
||||||
|
|
||||||
/// Internal reference of the export entry.
|
/// Internal reference of the export entry.
|
||||||
pub fn internal(&self) -> &Internal { &self.internal }
|
pub fn internal(&self) -> &Internal { &self.internal }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user