Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Dec 14, 2024
1 parent d32c57b commit 9f5e047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/byteview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl<'a> std::ops::Deref for Mutator<'a> {
impl<'a> std::ops::DerefMut for Mutator<'a> {
fn deref_mut(&mut self) -> &mut Self::Target {
let slice = unsafe {
let ptr: &[u8] = &*self.0;
let ptr: &[u8] = self.0;
let ptr = ptr.as_ptr().cast_mut();
std::slice::from_raw_parts_mut(ptr, self.len())
};
Expand Down

0 comments on commit 9f5e047

Please sign in to comment.