]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/fmt/mod.rs
auto merge of #14133 : db48x/rust/ord-for-mut-refs, r=alexcrichton
[rust.git] / src / libstd / fmt / mod.rs
index fecd68e049a6f315d77499d54bf648f42476a1ea..d4f12f590ae7516c0e064c2c7395f471d44facd1 100644 (file)
@@ -1138,6 +1138,9 @@ fn fmt(&self, f: &mut Formatter) -> Result { secret_show(&**self, f) }
 impl<'a, T: Show> Show for &'a T {
     fn fmt(&self, f: &mut Formatter) -> Result { secret_show(*self, f) }
 }
+impl<'a, T: Show> Show for &'a mut T {
+    fn fmt(&self, f: &mut Formatter) -> Result { secret_show(*self, f) }
+}
 
 impl Bool for bool {
     fn fmt(&self, f: &mut Formatter) -> Result {