Skip to content

Commit

Permalink
lint: remove unused BITS associated constant
Browse files Browse the repository at this point in the history
It looks like rustc just started warning about this.
  • Loading branch information
BurntSushi committed Jun 13, 2024
1 parent 345fab7 commit a05cc64
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
/// to ensure they get appropriately inlined. (inline(always) cannot be used
/// with target_feature.)
pub(crate) trait Vector: Copy + core::fmt::Debug {
/// The number of bits in the vector.
const BITS: usize;
/// The number of bytes in the vector. That is, this is the size of the
/// vector in memory.
const BYTES: usize;
Expand Down Expand Up @@ -200,7 +198,6 @@ mod x86sse2 {
use super::{SensibleMoveMask, Vector};

impl Vector for __m128i {
const BITS: usize = 128;
const BYTES: usize = 16;
const ALIGN: usize = Self::BYTES - 1;

Expand Down Expand Up @@ -250,7 +247,6 @@ mod x86avx2 {
use super::{SensibleMoveMask, Vector};

impl Vector for __m256i {
const BITS: usize = 256;
const BYTES: usize = 32;
const ALIGN: usize = Self::BYTES - 1;

Expand Down Expand Up @@ -300,7 +296,6 @@ mod aarch64neon {
use super::{MoveMask, Vector};

impl Vector for uint8x16_t {
const BITS: usize = 128;
const BYTES: usize = 16;
const ALIGN: usize = Self::BYTES - 1;

Expand Down Expand Up @@ -471,7 +466,6 @@ mod wasm_simd128 {
use super::{SensibleMoveMask, Vector};

impl Vector for v128 {
const BITS: usize = 128;
const BYTES: usize = 16;
const ALIGN: usize = Self::BYTES - 1;

Expand Down

0 comments on commit a05cc64

Please sign in to comment.