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 7
7
use std:: cell:: { Cell , RefCell } ;
8
8
use std:: mem:: MaybeUninit ;
9
9
use std:: ops:: Range ;
10
- use std:: { cmp, ptr, slice, str } ;
10
+ use std:: { cmp, ptr, slice} ;
11
11
12
12
// The arenas start with PAGE-sized chunks, and then each new chunk is twice as
13
13
// big as its predecessor, up until we reach HUGE_PAGE-sized chunks, whereupon
Original file line number Diff line number Diff line change 3
3
use std:: any:: Any ;
4
4
use std:: io:: Write ;
5
5
use std:: num:: NonZero ;
6
- use std:: str;
7
6
8
7
pub ( super ) type Writer = super :: buffer:: Buffer ;
9
8
@@ -31,7 +30,7 @@ macro_rules! rpc_encode_decode {
31
30
32
31
impl <S > DecodeMut <' _, ' _, S > for $ty {
33
32
fn decode( r: & mut Reader <' _>, _: & mut S ) -> Self {
34
- const N : usize = :: std :: mem :: size_of:: <$ty>( ) ;
33
+ const N : usize = size_of:: <$ty>( ) ;
35
34
36
35
let mut bytes = [ 0 ; N ] ;
37
36
bytes. copy_from_slice( & r[ ..N ] ) ;
Original file line number Diff line number Diff line change 11
11
12
12
use std:: cell:: RefCell ;
13
13
use std:: num:: NonZero ;
14
- use std:: str;
15
14
16
15
use super :: * ;
17
16
You can’t perform that action at this time.
0 commit comments