Navigation Menu

Skip to content

Commit

Permalink
Add type to Show implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jan 17, 2015
1 parent 79772f4 commit c5a4f31
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion phf/src/map.rs
Expand Up @@ -41,7 +41,7 @@ pub struct Map<K:'static, V:'static> {

impl<K, V> fmt::Show for Map<K, V> 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 {
Expand Down
2 changes: 1 addition & 1 deletion phf/src/ordered_map.rs
Expand Up @@ -48,7 +48,7 @@ pub struct OrderedMap<K:'static, V:'static> {

impl<K, V> fmt::Show for OrderedMap<K, V> 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 {
Expand Down
2 changes: 1 addition & 1 deletion phf/src/ordered_set.rs
Expand Up @@ -39,7 +39,7 @@ pub struct OrderedSet<T:'static> {

impl<T> fmt::Show for OrderedSet<T> 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 {
Expand Down
2 changes: 1 addition & 1 deletion phf/src/set.rs
Expand Up @@ -37,7 +37,7 @@ pub struct Set<T:'static> {

impl<T> fmt::Show for Set<T> 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 {
Expand Down

0 comments on commit c5a4f31

Please sign in to comment.