Skip to content

Commit 987409b

Browse files
author
Ahmed
committed
make impl_array_sizes independent of any external imports
Signed-off-by: Ahmed <>
1 parent 196f915 commit 987409b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/sizes.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
//!
99
//! When the `extra-sizes` feature is enabled: 1040-4064 (multiples of 32)
1010
11-
use super::{ArraySize, AssocArraySize};
12-
1311
#[cfg(feature = "extra-sizes")]
1412
pub use extra_sizes::*;
1513

@@ -21,11 +19,11 @@ pub use extra_sizes::*;
2119
macro_rules! impl_array_sizes {
2220
($($len:expr => $ty:ident),+ $(,)?) => {
2321
$(
24-
unsafe impl ArraySize for $ty {
22+
unsafe impl crate::ArraySize for $ty {
2523
type ArrayType<T> = [T; $len];
2624
}
2725

28-
impl<T> AssocArraySize for [T; $len] {
26+
impl<T> crate::AssocArraySize for [T; $len] {
2927
type Size = $ty;
3028
}
3129
)+
@@ -599,7 +597,6 @@ impl_array_sizes_with_import! {
599597
#[cfg(feature = "extra-sizes")]
600598
#[allow(missing_docs)]
601599
mod extra_sizes {
602-
use super::{ArraySize, AssocArraySize};
603600
// This macro constructs a UInt type from a sequence of bits. The bits are interpreted as the
604601
// little-endian representation of the integer in question. For example, uint!(1 1 0 1 0 0 1) is
605602
// U75 (not U105).

0 commit comments

Comments
 (0)