File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -204,8 +204,8 @@ macro_rules! int_module {
204
204
205
205
#[ test]
206
206
fn test_from_str( ) {
207
- fn from_str<T : :: std:: str :: FromStr >( t: & str ) -> Option <T > {
208
- :: std:: str :: FromStr :: from_str( t) . ok( )
207
+ fn from_str<T : std:: str :: FromStr >( t: & str ) -> Option <T > {
208
+ std:: str :: FromStr :: from_str( t) . ok( )
209
209
}
210
210
assert_eq!( from_str:: <$T>( "0" ) , Some ( 0 as $T) ) ;
211
211
assert_eq!( from_str:: <$T>( "3" ) , Some ( 3 as $T) ) ;
Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ impl<T: Write> OutputFormatter for JsonFormatter<T> {
182
182
/// Base code taken form `libserialize::json::escape_str`
183
183
struct EscapedString < S : AsRef < str > > ( S ) ;
184
184
185
- impl < S : AsRef < str > > :: std:: fmt:: Display for EscapedString < S > {
186
- fn fmt ( & self , f : & mut :: std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
185
+ impl < S : AsRef < str > > std:: fmt:: Display for EscapedString < S > {
186
+ fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> :: std:: fmt:: Result {
187
187
let mut start = 0 ;
188
188
189
189
for ( i, byte) in self . 0 . as_ref ( ) . bytes ( ) . enumerate ( ) {
You can’t perform that action at this time.
0 commit comments