Make types more consistent

This commit is contained in:
Syrus
2020-05-05 15:46:07 -07:00
parent 9e5103f3af
commit 456d7e31d2
4 changed files with 12 additions and 19 deletions

View File

@@ -244,7 +244,7 @@ impl Module {
/// ```
pub fn set_name(&mut self, name: &str) {
let compiled = Arc::get_mut(&mut self.compiled).unwrap();
Arc::get_mut(compiled.module_mut()).unwrap().name = Some(name.to_string());
compiled.module_mut().name = Some(name.to_string());
}
/// Returns an iterator over the imported types in the Module.