Skip to content

Commit

Permalink
hybrid-array: remove ByteArray alias
Browse files Browse the repository at this point in the history
It's longer than `Array<u8, _>` and provides little value other than
needless indirection.

Closes #987
  • Loading branch information
tarcieri committed Dec 30, 2023
1 parent 143f342 commit cc5dba8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hybrid-array/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,6 @@ fn check_slice_length<T, U: ArraySize>(slice: &[T]) -> Result<(), TryFromSliceEr
Ok(())
}

/// Byte array type.
pub type ByteArray<U> = Array<u8, U>;

/// Array operations which are const generic over a given array size.
pub trait ArrayOps<T, const N: usize>:
AsRef<[T; N]>
Expand Down

0 comments on commit cc5dba8

Please sign in to comment.