remove unneeded imports
This commit is contained in:
parent
e2c96cc06b
commit
0a6462be90
3 changed files with 2 additions and 4 deletions
|
|
@ -7,7 +7,7 @@
|
|||
use std::cell::{Cell, RefCell};
|
||||
use std::mem::MaybeUninit;
|
||||
use std::ops::Range;
|
||||
use std::{cmp, ptr, slice, str};
|
||||
use std::{cmp, ptr, slice};
|
||||
|
||||
// The arenas start with PAGE-sized chunks, and then each new chunk is twice as
|
||||
// big as its predecessor, up until we reach HUGE_PAGE-sized chunks, whereupon
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
use std::any::Any;
|
||||
use std::io::Write;
|
||||
use std::num::NonZero;
|
||||
use std::str;
|
||||
|
||||
pub(super) type Writer = super::buffer::Buffer;
|
||||
|
||||
|
|
@ -31,7 +30,7 @@ macro_rules! rpc_encode_decode {
|
|||
|
||||
impl<S> DecodeMut<'_, '_, S> for $ty {
|
||||
fn decode(r: &mut Reader<'_>, _: &mut S) -> Self {
|
||||
const N: usize = ::std::mem::size_of::<$ty>();
|
||||
const N: usize = size_of::<$ty>();
|
||||
|
||||
let mut bytes = [0; N];
|
||||
bytes.copy_from_slice(&r[..N]);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
use std::cell::RefCell;
|
||||
use std::num::NonZero;
|
||||
use std::str;
|
||||
|
||||
use super::*;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue