mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-13 00:00:32 +02:00
Remove traits mod
This commit is contained in:
@@ -33,11 +33,6 @@ pub use str::{
|
||||
|
||||
use std::u32;
|
||||
|
||||
pub mod traits {
|
||||
//! All traits are re-exported here to allow glob imports.
|
||||
pub use {Buf, MutBuf, ByteStr, ToBytes};
|
||||
}
|
||||
|
||||
const MAX_CAPACITY: usize = u32::MAX as usize;
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
use {ByteBuf, SmallByteStr};
|
||||
use traits::{Buf, ByteStr, ToBytes};
|
||||
use buf::{Buf};
|
||||
use str::{ByteStr, ToBytes};
|
||||
use std::{fmt, mem, ops, ptr};
|
||||
use std::any::{TypeId};
|
||||
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
use {Bytes, ByteBuf};
|
||||
use traits::{Buf, ByteStr, MutBuf, ToBytes};
|
||||
use buf::{Buf, MutBuf};
|
||||
use str::{ByteStr, ToBytes};
|
||||
use std::{cmp, mem, ops};
|
||||
use std::sync::Arc;
|
||||
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
use {Bytes, Rope};
|
||||
use traits::{Buf, ByteStr, ToBytes};
|
||||
use buf::Buf;
|
||||
use str::{ByteStr, ToBytes};
|
||||
use std::{cmp, ops};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user