File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ impl [u8] {
190
190
}
191
191
}
192
192
193
- type EscapeByte = impl ( Fn ( & u8 ) -> ascii:: EscapeDefault ) + Clone ;
193
+ type EscapeByte = impl ( Fn ( & u8 ) -> ascii:: EscapeDefault ) + Copy ;
194
194
195
195
/// An iterator over the escaped version of a byte slice.
196
196
///
Original file line number Diff line number Diff line change @@ -2764,15 +2764,15 @@ impl Default for &mut str {
2764
2764
}
2765
2765
}
2766
2766
2767
- type LinesMap = impl ( Fn ( & str ) -> & str ) + Clone ;
2768
- type CharEscapeDebugContinue = impl ( FnMut ( char ) -> char:: EscapeDebug ) + Clone ;
2769
- type CharEscapeUnicode = impl ( Fn ( char ) -> char:: EscapeUnicode ) + Clone ;
2770
- type CharEscapeDefault = impl ( Fn ( char ) -> char:: EscapeDefault ) + Clone ;
2771
- type IsWhitespace = impl ( Fn ( char ) -> bool ) + Clone ;
2772
- type IsAsciiWhitespace = impl ( Fn ( & u8 ) -> bool ) + Clone ;
2773
- type IsNotEmpty = impl ( Fn ( & & str ) -> bool ) + Clone ;
2774
- type BytesIsNotEmpty < ' a > = impl ( FnMut ( & & ' a [ u8 ] ) -> bool ) + Clone ;
2775
- type UnsafeBytesToStr < ' a > = impl ( FnMut ( & ' a [ u8 ] ) -> & ' a str ) + Clone ;
2767
+ type LinesMap = impl ( Fn ( & str ) -> & str ) + Copy ;
2768
+ type CharEscapeDebugContinue = impl ( FnMut ( char ) -> char:: EscapeDebug ) + Copy ;
2769
+ type CharEscapeUnicode = impl ( Fn ( char ) -> char:: EscapeUnicode ) + Copy ;
2770
+ type CharEscapeDefault = impl ( Fn ( char ) -> char:: EscapeDefault ) + Copy ;
2771
+ type IsWhitespace = impl ( Fn ( char ) -> bool ) + Copy ;
2772
+ type IsAsciiWhitespace = impl ( Fn ( & u8 ) -> bool ) + Copy ;
2773
+ type IsNotEmpty = impl ( Fn ( & & str ) -> bool ) + Copy ;
2774
+ type BytesIsNotEmpty < ' a > = impl ( FnMut ( & & ' a [ u8 ] ) -> bool ) + Copy ;
2775
+ type UnsafeBytesToStr < ' a > = impl ( FnMut ( & ' a [ u8 ] ) -> & ' a str ) + Copy ;
2776
2776
2777
2777
// This is required to make `impl From<&str> for Box<dyn Error>` and `impl<E> From<E> for Box<dyn Error>` not overlap.
2778
2778
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
You can’t perform that action at this time.
0 commit comments