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

View File

@@ -409,7 +409,7 @@ mod test_vmshared_signature_index {
impl VMSharedSignatureIndex { impl VMSharedSignatureIndex {
/// Create a new `VMSharedSignatureIndex`. /// Create a new `VMSharedSignatureIndex`.
pub fn new(value: u32) -> Self { pub fn new(value: u32) -> Self {
VMSharedSignatureIndex(value) Self(value)
} }
} }