Skip to content

Commit

Permalink
Remove redundant cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralith committed Sep 16, 2023
1 parent d94bd51 commit 7751086
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/archetype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ impl Archetype {
assert_eq!(self.types[state].id, TypeId::of::<T>());

unsafe {
NonNull::new_unchecked(
self.data.get_unchecked(state).storage.as_ptr().cast::<T>() as *mut T
)
NonNull::new_unchecked(self.data.get_unchecked(state).storage.as_ptr().cast::<T>())
}
}

Expand Down

0 comments on commit 7751086

Please sign in to comment.