about summary refs log tree commit diff
path: root/src/libcore/fmt
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2015-04-09 18:06:01 -0700
committerRicho Healey <richo@psych0tik.net>2015-04-09 18:06:01 -0700
commit64da4e171d7fa5715b76becde4e8fd40712eaf9f (patch)
tree4995c5742fb53bdd9eaec27c0a2f0ac07cae0341 /src/libcore/fmt
parentd8bb08037f9ea7295feb5740a16a6dc1dd810f33 (diff)
downloadrust-64da4e171d7fa5715b76becde4e8fd40712eaf9f.tar.gz
rust-64da4e171d7fa5715b76becde4e8fd40712eaf9f.zip
fmt: Assume that we'll only ever see 32 or 64 bit pointers
Diffstat (limited to 'src/libcore/fmt')
-rw-r--r--src/libcore/fmt/mod.rs3
1 files changed, 1 insertions, 2 deletions
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<T> 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);
                 }
             }