about summary refs log tree commit diff
path: root/src/librustc_back/svh.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustc_back/svh.rs')
-rw-r--r--src/librustc_back/svh.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/librustc_back/svh.rs b/src/librustc_back/svh.rs
index b71e465b938..77ee59dc2ba 100644
--- a/src/librustc_back/svh.rs
+++ b/src/librustc_back/svh.rs
@@ -52,7 +52,7 @@ use std::iter::range_step;
 use syntax::ast;
 use syntax::visit;
 
-#[derive(Clone, PartialEq)]
+#[derive(Clone, PartialEq, Show)]
 pub struct Svh {
     hash: String,
 }
@@ -117,13 +117,7 @@ impl Svh {
     }
 }
 
-impl fmt::Show for Svh {
-    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        write!(f, "Svh {{ {} }}", self.as_str())
-    }
-}
-
-impl fmt::String for Svh {
+impl fmt::Display for Svh {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         f.pad(self.as_str())
     }