Просмотр исходного кода

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 лет назад
Родитель
Сommit
50cb799e63
1 измененных файлов с 1 добавлено и 1 удалено
  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("/")