File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ impl [u8] {
190190 }
191191}
192192
193- type EscapeByte = impl ( Fn ( & u8 ) -> ascii:: EscapeDefault ) + Clone ;
193+ type EscapeByte = impl ( Fn ( & u8 ) -> ascii:: EscapeDefault ) + Copy ;
194194
195195/// An iterator over the escaped version of a byte slice.
196196///
Original file line number Diff line number Diff line change @@ -2764,15 +2764,15 @@ impl Default for &mut str {
27642764 }
27652765}
27662766
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 ;
27762776
27772777// This is required to make `impl From<&str> for Box<dyn Error>` and `impl<E> From<E> for Box<dyn Error>` not overlap.
27782778#[ stable( feature = "rust1" , since = "1.0.0" ) ]
You can’t perform that action at this time.
0 commit comments