From c5a4f3112e09d84332305bd7daff3a93691c7b3c Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 16 Jan 2015 21:17:44 -0800 Subject: [PATCH] Add type to Show implementations --- phf/src/map.rs | 2 +- phf/src/ordered_map.rs | 2 +- phf/src/ordered_set.rs | 2 +- phf/src/set.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/phf/src/map.rs b/phf/src/map.rs index 5286af6f..0b5f95a0 100644 --- a/phf/src/map.rs +++ b/phf/src/map.rs @@ -41,7 +41,7 @@ pub struct Map { impl fmt::Show for Map where K: fmt::Show, V: fmt::Show { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - try!(write!(fmt, "{{")); + try!(write!(fmt, "Map {{")); let mut first = true; for (k, v) in self.entries() { if !first { diff --git a/phf/src/ordered_map.rs b/phf/src/ordered_map.rs index 725cdec5..9c042445 100644 --- a/phf/src/ordered_map.rs +++ b/phf/src/ordered_map.rs @@ -48,7 +48,7 @@ pub struct OrderedMap { impl fmt::Show for OrderedMap where K: fmt::Show, V: fmt::Show { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - try!(write!(fmt, "{{")); + try!(write!(fmt, "OrderedMap {{")); let mut first = true; for (k, v) in self.entries() { if !first { diff --git a/phf/src/ordered_set.rs b/phf/src/ordered_set.rs index 4658c3ed..05c48a4f 100644 --- a/phf/src/ordered_set.rs +++ b/phf/src/ordered_set.rs @@ -39,7 +39,7 @@ pub struct OrderedSet { impl fmt::Show for OrderedSet where T: fmt::Show { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - try!(write!(fmt, "{{")); + try!(write!(fmt, "OrderedSet {{")); let mut first = true; for entry in self.iter() { if !first { diff --git a/phf/src/set.rs b/phf/src/set.rs index 803fc246..46647a5f 100644 --- a/phf/src/set.rs +++ b/phf/src/set.rs @@ -37,7 +37,7 @@ pub struct Set { impl fmt::Show for Set where T: fmt::Show { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - try!(write!(fmt, "{{")); + try!(write!(fmt, "Set {{")); let mut first = true; for entry in self.iter() { if !first {