From a90cdcca7eb189901a666cbee194f08719e10b94 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 24 May 2019 16:44:52 +0200 Subject: [PATCH] this is for tidy --- src/librustc/mir/interpret/value.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/mir/interpret/value.rs b/src/librustc/mir/interpret/value.rs index e3d016ff4e0..6b6f7f7a307 100644 --- a/src/librustc/mir/interpret/value.rs +++ b/src/librustc/mir/interpret/value.rs @@ -126,7 +126,7 @@ impl fmt::Debug for Scalar { assert_eq!(truncate(bits, Size::from_bytes(size as u64)), bits, "Scalar value {:#x} exceeds size of {} bytes", bits, size); // Format as hex number wide enough to fit any value of the given `size`. - // So e.g. bits=20, size=1 will be "0x14", but with size=4 it'll be "0x00000014". + // So bits=20, size=1 will be "0x14", but with size=4 it'll be "0x00000014". write!(f, "0x{:>0width$x}", bits, width=(size*2) as usize) } }