Tidy up unnecessary return statements.

This commit is contained in:
Dan Gohman
2019-01-05 16:18:20 -08:00
parent 3143e22566
commit 0826e32c9a

View File

@@ -412,7 +412,7 @@ impl InstanceContents {
/// Return a reference to the custom state attached to this instance.
pub fn host_state(&mut self) -> &mut Any {
return &mut *self.host_state;
&mut *self.host_state
}
}
@@ -691,7 +691,7 @@ impl Instance {
/// Return a reference to the custom state attached to this instance.
pub fn host_state(&mut self) -> &mut Any {
return self.mmap_field.contents_mut().host_state();
self.mmap_field.contents_mut().host_state()
}
}