File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
library/proc_macro/src/bridge Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 77use std:: cell:: { Cell , RefCell } ;
88use std:: mem:: MaybeUninit ;
99use std:: ops:: Range ;
10- use std:: { cmp, ptr, slice, str } ;
10+ use std:: { cmp, ptr, slice} ;
1111
1212// The arenas start with PAGE-sized chunks, and then each new chunk is twice as
1313// big as its predecessor, up until we reach HUGE_PAGE-sized chunks, whereupon
Original file line number Diff line number Diff line change 33use std:: any:: Any ;
44use std:: io:: Write ;
55use std:: num:: NonZero ;
6- use std:: str;
76
87pub ( super ) type Writer = super :: buffer:: Buffer ;
98
@@ -31,7 +30,7 @@ macro_rules! rpc_encode_decode {
3130
3231 impl <S > DecodeMut <' _, ' _, S > for $ty {
3332 fn decode( r: & mut Reader <' _>, _: & mut S ) -> Self {
34- const N : usize = :: std :: mem :: size_of:: <$ty>( ) ;
33+ const N : usize = size_of:: <$ty>( ) ;
3534
3635 let mut bytes = [ 0 ; N ] ;
3736 bytes. copy_from_slice( & r[ ..N ] ) ;
Original file line number Diff line number Diff line change 1111
1212use std:: cell:: RefCell ;
1313use std:: num:: NonZero ;
14- use std:: str;
1514
1615use super :: * ;
1716
You can’t perform that action at this time.
0 commit comments