Skip to content

Commit d4f876c

Browse files
committed
Remove a leftover SAFETY comment.
1 parent 17fbc63 commit d4f876c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/core/src/ptr/unique.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ impl<T: ?Sized> const From<NonNull<T>> for Unique<T> {
188188
/// This conversion is infallible since `NonNull` cannot be null.
189189
#[inline]
190190
fn from(pointer: NonNull<T>) -> Self {
191-
// SAFETY: A `NonNull` cannot be null
192191
Unique { pointer, _marker: PhantomData }
193192
}
194193
}

0 commit comments

Comments
 (0)