diff options
Diffstat (limited to 'src/libstd/map.rs')
| -rw-r--r-- | src/libstd/map.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/map.rs b/src/libstd/map.rs index d68970679ad..b1909bfb067 100644 --- a/src/libstd/map.rs +++ b/src/libstd/map.rs @@ -390,7 +390,7 @@ pub mod chained { } } - impl<K:Eq IterBytes Hash Copy ToStr, V: ToStr Copy> T<K, V>: ToStr { + impl<K:Eq IterBytes Hash Copy ToStr, V: ToStr Copy> T<K, V> { fn to_writer(wr: io::Writer) { if self.count == 0u { wr.write_str(~"{}"); @@ -410,7 +410,9 @@ pub mod chained { }; wr.write_str(~" }"); } + } + impl<K:Eq IterBytes Hash Copy ToStr, V: ToStr Copy> T<K, V>: ToStr { pure fn to_str() -> ~str unsafe { // Meh -- this should be safe do io::with_str_writer |wr| { self.to_writer(wr) } |
