Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Dec 13, 2024
1 parent c1c9f15 commit e7b124a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/libs/core/src/ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl<T: Type<T>> Ref<'_, T> {
}

unsafe fn assume_init_ref(&self) -> &T {
T::assume_init_ref(&self.0)
unsafe { T::assume_init_ref(&self.0) }
}
}

Expand Down
4 changes: 2 additions & 2 deletions crates/libs/core/src/type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ where
}

unsafe fn assume_init_ref(abi: &Self::Abi) -> &Self {
core::mem::transmute::<&*mut core::ffi::c_void, &T>(abi)
unsafe { core::mem::transmute::<&*mut core::ffi::c_void, &T>(abi) }
}

unsafe fn from_abi(abi: Self::Abi) -> Result<Self> {
Expand Down Expand Up @@ -67,7 +67,7 @@ where
}

unsafe fn assume_init_ref(abi: &Self::Abi) -> &Self {
abi.assume_init_ref()
unsafe { abi.assume_init_ref() }
}

unsafe fn from_abi(abi: Self::Abi) -> Result<Self> {
Expand Down

0 comments on commit e7b124a

Please sign in to comment.