From 64da4e171d7fa5715b76becde4e8fd40712eaf9f Mon Sep 17 00:00:00 2001 From: Richo Healey Date: Thu, 9 Apr 2015 18:06:01 -0700 Subject: fmt: Assume that we'll only ever see 32 or 64 bit pointers --- src/libcore/fmt/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index 2a7569e3b73..67781b73ae2 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -861,8 +861,7 @@ impl Pointer for *const T { // The formats need two extra bytes, for the 0x if cfg!(target_pointer_width = "32") { f.width = Some(10); - } - if cfg!(target_pointer_width = "64") { + } else { f.width = Some(18); } } -- cgit 1.4.1-3-g733a5