We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 943a9e7 commit a1db237Copy full SHA for a1db237
src/libcore/ptr.rs
@@ -2346,7 +2346,7 @@ pub struct Unique<T: ?Sized> {
2346
#[unstable(feature = "ptr_internals", issue = "0")]
2347
impl<T: ?Sized> fmt::Debug for Unique<T> {
2348
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2349
- write!(f, "{:p}", self.as_ptr())
+ fmt::Pointer::fmt(&self.as_ptr(), f)
2350
}
2351
2352
@@ -2489,7 +2489,7 @@ pub struct NonNull<T: ?Sized> {
2489
#[stable(feature = "nonnull", since = "1.24.0")]
2490
impl<T: ?Sized> fmt::Debug for NonNull<T> {
2491
2492
2493
2494
2495
0 commit comments