Avoid struct name repetitions.

This commit is contained in:
Dan Gohman
2019-02-22 15:21:20 -08:00
parent 601057ec42
commit 3827bc7a04
2 changed files with 2 additions and 2 deletions

View File

@@ -843,7 +843,7 @@ impl InstanceHandle {
impl Clone for InstanceHandle {
fn clone(&self) -> Self {
unsafe { &mut *(self.instance as *mut Instance) }.refcount += 1;
InstanceHandle {
Self {
instance: self.instance,
}
}