Skip to content

Commit 0a6462b

Browse files
committed
remove unneeded imports
1 parent e2c96cc commit 0a6462b

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

library/proc_macro/src/bridge/arena.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use std::cell::{Cell, RefCell};
88
use std::mem::MaybeUninit;
99
use 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

library/proc_macro/src/bridge/rpc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
use std::any::Any;
44
use std::io::Write;
55
use std::num::NonZero;
6-
use std::str;
76

87
pub(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]);

library/proc_macro/src/bridge/symbol.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
1212
use std::cell::RefCell;
1313
use std::num::NonZero;
14-
use std::str;
1514

1615
use super::*;
1716

0 commit comments

Comments
 (0)