Glommio clippy (#341)

This commit is contained in:
Nikolay Kim 2024-04-08 11:55:49 +05:00 committed by GitHub
parent a858394855
commit ec8eb23707
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 28 additions and 50 deletions

View file

@ -30,4 +30,4 @@ simdutf8 = { version = "0.1.4", optional = true }
serde_test = "1"
serde_json = "1"
ntex = { version = "1", features = ["tokio"] }
ntex-bytes = { version = "*", features = ["mpool"] }
ntex-bytes = { path = ".", features = ["mpool"] }

View file

@ -1,4 +1,4 @@
use std::{cmp, mem, ptr, usize};
use std::{cmp, mem, ptr};
use super::{UninitSlice, Writer};

View file

@ -2,7 +2,7 @@ use std::borrow::{Borrow, BorrowMut};
use std::ops::{Deref, DerefMut, RangeBounds};
use std::sync::atomic::Ordering::{Acquire, Relaxed, Release};
use std::sync::atomic::{self, AtomicUsize};
use std::{cmp, fmt, hash, mem, ptr, ptr::NonNull, slice, usize};
use std::{cmp, fmt, hash, mem, ptr, ptr::NonNull, slice};
use crate::pool::{PoolId, PoolRef};
use crate::{buf::IntoIter, buf::UninitSlice, debug, Buf, BufMut};

View file

@ -2,7 +2,6 @@
use ntex_bytes::{BufMut, BytesMut};
use std::fmt::Write;
use std::usize;
#[test]
fn test_vec_as_mut_buf() {