Skip to content

Commit 7cb50ca

Browse files
authored
Merge pull request #84 from AdaWorldAPI/claude/setup-embedding-pipeline-Fa65C
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
2 parents bab9f2e + e9905bf commit 7cb50ca

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/hpc/gguf.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ use std::io::{Read, Seek, SeekFrom};
1919
/// GGUF magic number: "GGUF" in little-endian.
2020
pub const GGUF_MAGIC: u32 = 0x46554747; // "GGUF" as LE u32
2121

22-
/// Tensor data type in GGUF.
22+
/// Tensor data type in GGUF (variant names follow GGML convention).
2323
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
2424
#[repr(u32)]
25+
#[allow(non_camel_case_types)]
2526
pub enum GgmlType {
2627
F32 = 0,
2728
F16 = 1,

src/simd_avx2.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,13 +919,20 @@ impl I64x8 {
919919
#[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) }
920920
}
921921

922-
/// Lowercase aliases (std::simd convention)
922+
/// Lowercase aliases (std::simd convention).
923+
#[allow(non_camel_case_types)]
923924
pub type f32x16 = F32x16;
925+
#[allow(non_camel_case_types)]
924926
pub type f64x8 = F64x8;
927+
#[allow(non_camel_case_types)]
925928
pub type u8x64 = U8x64;
929+
#[allow(non_camel_case_types)]
926930
pub type i32x16 = I32x16;
931+
#[allow(non_camel_case_types)]
927932
pub type i64x8 = I64x8;
933+
#[allow(non_camel_case_types)]
928934
pub type u32x16 = U32x16;
935+
#[allow(non_camel_case_types)]
929936
pub type u64x8 = U64x8;
930937

931938
#[cfg(test)]

0 commit comments

Comments
 (0)