mirror of
https://github.com/Noratrieb/stuff.git
synced 2026-01-15 00:45:08 +01:00
lower msrv to 1.31.1
edition 2015 is behind that, I won't touch that
This commit is contained in:
parent
ee7e477006
commit
c52472a874
3 changed files with 6 additions and 6 deletions
|
|
@ -131,7 +131,7 @@ where
|
|||
pub fn new_ptr(ptr: *mut T) -> Self {
|
||||
let addr = Strict::addr(ptr);
|
||||
let stuffed = S::stuff_ptr(addr);
|
||||
Self(B::set_ptr(ptr, stuffed), PhantomData)
|
||||
StuffedPtr(B::set_ptr(ptr, stuffed), PhantomData)
|
||||
}
|
||||
|
||||
/// Create a new `StuffPtr` from extra data
|
||||
|
|
@ -140,7 +140,7 @@ where
|
|||
// if the user calls `set_ptr` it will use the new provenance from that ptr
|
||||
let ptr = core::ptr::null_mut();
|
||||
let extra = S::stuff_extra(extra);
|
||||
Self(B::set_ptr(ptr, extra), PhantomData)
|
||||
StuffedPtr(B::set_ptr(ptr, extra), PhantomData)
|
||||
}
|
||||
|
||||
/// Get the pointer data, or `None` if it contains extra data
|
||||
|
|
@ -280,7 +280,7 @@ where
|
|||
Self::new_extra(cloned_extra)
|
||||
} else {
|
||||
// just copy the pointer
|
||||
Self(self.0, PhantomData)
|
||||
StuffedPtr(self.0, PhantomData)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue