Merge pull request #107 from paritytech/exportentry_field_mut

field_mut better return &mut String
This commit is contained in:
Nikolay Volf 2017-10-25 18:50:29 +03:00 committed by GitHub
commit c01769f76f

View File

@ -67,7 +67,7 @@ impl ExportEntry {
pub fn field(&self) -> &str { &self.field_str }
/// 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.
pub fn internal(&self) -> &Internal { &self.internal }