diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2014-08-18 22:33:38 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2014-08-26 21:24:46 +0100 |
commit | b7401b9562792f3c9019609b9302b4d77ff31037 (patch) | |
tree | 5c42d314da61fd7ec8f63827ddde4a30d3b9276f /src | |
parent | 578c14e7b6545577169bdc99c2135df3eb7c33b1 (diff) | |
download | servo-b7401b9562792f3c9019609b9302b4d77ff31037.tar.gz servo-b7401b9562792f3c9019609b9302b4d77ff31037.zip |
Only write the px value in Show for Au
The integer Au value is mostly internal and does not make much sense.
Printing both values is very verbose and hurts readability of debug logs.
Diffstat (limited to 'src')
-rw-r--r-- | src/components/util/geometry.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/util/geometry.rs b/src/components/util/geometry.rs index 70882f17178..2b1082fa3d2 100644 --- a/src/components/util/geometry.rs +++ b/src/components/util/geometry.rs @@ -79,8 +79,7 @@ impl Default for Au { impl fmt::Show for Au { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - let Au(n) = *self; - write!(f, "Au(au={} px={})", n, to_frac_px(*self)) + write!(f, "{}px", to_frac_px(*self)) }} impl Add<Au,Au> for Au { |