Avoid struct name repetitions.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -409,7 +409,7 @@ mod test_vmshared_signature_index {
|
||||
impl VMSharedSignatureIndex {
|
||||
/// Create a new `VMSharedSignatureIndex`.
|
||||
pub fn new(value: u32) -> Self {
|
||||
VMSharedSignatureIndex(value)
|
||||
Self(value)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user