Browse Source

Remove unused `Str` bound

This bound requires the `core` feature but doesn't appear to be required in the
`impl` block itself for `fmt::Display`
Alex Crichton 11 years ago
parent
commit
50cb799e63
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/format.rs

+ 1 - 1
src/format.rs

@@ -21,7 +21,7 @@ pub struct PathFormatter<'a, T:'a> {
     pub path: &'a [T]
     pub path: &'a [T]
 }
 }
 
 
-impl<'a, T: Str + fmt::Display> fmt::Display for PathFormatter<'a, T> {
+impl<'a, T: fmt::Display> fmt::Display for PathFormatter<'a, T> {
     fn fmt(&self, formatter: &mut Formatter) -> fmt::Result {
     fn fmt(&self, formatter: &mut Formatter) -> fmt::Result {
         if self.path.is_empty() {
         if self.path.is_empty() {
             formatter.write_str("/")
             formatter.write_str("/")