From e9905bf29450239af22ddf0c2d66fa28d4cb341b Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 4 Apr 2026 19:57:23 +0000 Subject: [PATCH] Fix upper camel case warnings: allow non_camel_case_types for SIMD aliases and GGML variants - #[allow(non_camel_case_types)] on f32x16/f64x8/u8x64 etc (std::simd convention) - #[allow(non_camel_case_types)] on GgmlType enum (GGML naming convention) https://claude.ai/code/session_01ChLvBfpJS8dQhHxRD4pYNp --- src/hpc/gguf.rs | 3 ++- src/simd_avx2.rs | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/hpc/gguf.rs b/src/hpc/gguf.rs index dbce2f6c..134bd0df 100644 --- a/src/hpc/gguf.rs +++ b/src/hpc/gguf.rs @@ -19,9 +19,10 @@ use std::io::{Read, Seek, SeekFrom}; /// GGUF magic number: "GGUF" in little-endian. pub const GGUF_MAGIC: u32 = 0x46554747; // "GGUF" as LE u32 -/// Tensor data type in GGUF. +/// Tensor data type in GGUF (variant names follow GGML convention). #[derive(Debug, Clone, Copy, PartialEq, Eq)] #[repr(u32)] +#[allow(non_camel_case_types)] pub enum GgmlType { F32 = 0, F16 = 1, diff --git a/src/simd_avx2.rs b/src/simd_avx2.rs index c952469a..823063d3 100644 --- a/src/simd_avx2.rs +++ b/src/simd_avx2.rs @@ -919,13 +919,20 @@ impl I64x8 { #[inline(always)] pub fn simd_max(self, other: Self) -> Self { let mut o = [0i64; 8]; for i in 0..8 { o[i] = self.0[i].max(other.0[i]); } Self(o) } } -/// Lowercase aliases (std::simd convention) +/// Lowercase aliases (std::simd convention). +#[allow(non_camel_case_types)] pub type f32x16 = F32x16; +#[allow(non_camel_case_types)] pub type f64x8 = F64x8; +#[allow(non_camel_case_types)] pub type u8x64 = U8x64; +#[allow(non_camel_case_types)] pub type i32x16 = I32x16; +#[allow(non_camel_case_types)] pub type i64x8 = I64x8; +#[allow(non_camel_case_types)] pub type u32x16 = U32x16; +#[allow(non_camel_case_types)] pub type u64x8 = U64x8; #[cfg(test)]