Parcourir la 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 il y a 11 ans
Parent
commit
50cb799e63
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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]
 }
 
-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 {
         if self.path.is_empty() {
             formatter.write_str("/")