Skip to content

Commit

Permalink
fix: remove redundant macro imports
Browse files Browse the repository at this point in the history
  • Loading branch information
threadexio committed Mar 25, 2024
1 parent 4fc5e37 commit 9f97f4c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions channels-io/src/buf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ macro_rules! forward_buf_impl {
}
};
}
pub(crate) use forward_buf_impl;

/// A non-contiguous buffer whose chunks can be iterated over.
pub trait Walkable: Buf {
Expand Down Expand Up @@ -156,7 +155,6 @@ macro_rules! forward_walkable_impl {
}
};
}
pub(crate) use forward_walkable_impl;

/// A marker trait that describes the behavior of [`Buf::chunk()`].
///
Expand Down Expand Up @@ -210,7 +208,6 @@ unsafe impl Contiguous for &[u8] {}

#[cfg(feature = "alloc")]
mod alloc_impls {
use super::{forward_buf_impl, forward_walkable_impl};
use super::{Buf, Contiguous, Walkable};

#[allow(unused_imports)]
Expand Down
3 changes: 0 additions & 3 deletions channels-io/src/buf_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ macro_rules! forward_bufmut_impl {
}
};
}
pub(crate) use forward_bufmut_impl;

/// A non-contiguous mutable buffer whose chunks can be iterated over.
pub trait WalkableMut: BufMut {
Expand Down Expand Up @@ -138,7 +137,6 @@ macro_rules! forward_walkable_mut_impl {
}
};
}
pub(crate) use forward_walkable_mut_impl;

/// A marker trait that describes the behavior of [`BufMut::chunk_mut()`].
///
Expand Down Expand Up @@ -193,7 +191,6 @@ unsafe impl ContiguousMut for &mut [u8] {}

#[cfg(feature = "alloc")]
mod alloc_impls {
use super::{forward_bufmut_impl, forward_walkable_mut_impl};
use super::{BufMut, ContiguousMut, WalkableMut};

#[allow(unused_imports)]
Expand Down
3 changes: 0 additions & 3 deletions channels-io/src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ macro_rules! forward_as_bytes_impl {
}
};
}
pub(crate) use forward_as_bytes_impl;

/// A type that holds a contiguous slice of mutable bytes.
pub trait AsBytesMut: AsBytes {
Expand All @@ -26,7 +25,6 @@ macro_rules! forward_as_bytes_mut_impl {
}
};
}
pub(crate) use forward_as_bytes_mut_impl;

// ========================================================

Expand Down Expand Up @@ -56,7 +54,6 @@ impl<const N: usize> AsBytesMut for [u8; N] {

#[cfg(feature = "alloc")]
mod alloc_impls {
use super::{forward_as_bytes_impl, forward_as_bytes_mut_impl};
use super::{AsBytes, AsBytesMut};

#[allow(unused_imports)]
Expand Down

0 comments on commit 9f97f4c

Please sign in to comment.