remove unneeded imports

This commit is contained in:
cyrgani 2025-10-05 23:25:08 +02:00
parent e2c96cc06b
commit 0a6462be90
3 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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]);

View file

@ -11,7 +11,6 @@
use std::cell::RefCell;
use std::num::NonZero;
use std::str;
use super::*;