mirror of
https://git.mentality.rip/numas13/xash3d-master.git
synced 2025-01-22 12:54:24 +00:00
Remove unnecessary unsafe
This commit is contained in:
parent
eef9698d02
commit
1a565872d7
@ -322,9 +322,10 @@ macro_rules! impl_put {
|
||||
|
||||
impl<'a> CursorMut<'a> {
|
||||
pub fn new(buffer: &'a mut [u8]) -> Self {
|
||||
let (buffer, buffer_mut) = buffer.split_at_mut(0);
|
||||
Self {
|
||||
buffer: unsafe { slice::from_raw_parts(buffer.as_ptr(), 0) },
|
||||
buffer_mut: buffer,
|
||||
buffer,
|
||||
buffer_mut,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user