mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-07-03 16:41:59 +00:00
Merge pull request #130 from paritytech/mut-str
Fix API for import entry
This commit is contained in:
@ -259,7 +259,7 @@ impl ImportEntry {
|
||||
pub fn module(&self) -> &str { &self.module_str }
|
||||
|
||||
/// Module reference of the import entry (mutable).
|
||||
pub fn module_mut(&mut self) -> &mut str {
|
||||
pub fn module_mut(&mut self) -> &mut String {
|
||||
&mut self.module_str
|
||||
}
|
||||
|
||||
@ -267,7 +267,7 @@ impl ImportEntry {
|
||||
pub fn field(&self) -> &str { &self.field_str }
|
||||
|
||||
/// Field reference of the import entry (mutable)
|
||||
pub fn field_mut(&mut self) -> &mut str {
|
||||
pub fn field_mut(&mut self) -> &mut String {
|
||||
&mut self.field_str
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user