diff --git a/src/pointer.rs b/src/pointer.rs index 903a937..256402c 100644 --- a/src/pointer.rs +++ b/src/pointer.rs @@ -952,7 +952,7 @@ impl Deref for PointerBuf { impl From for Box { fn from(value: PointerBuf) -> Self { let s = value.0.into_boxed_str(); - // SAFETY> we ensure that the layout of `str` is the same as `Pointer` + // SAFETY: we ensure that the layout of `str` is the same as `Pointer` unsafe { Box::from_raw(Box::into_raw(s) as *mut Pointer) } } }