From f003a5d5a2af1ce9f32ef028368fc0745571ff7e Mon Sep 17 00:00:00 2001 From: Cameron Hart Date: Tue, 17 Dec 2024 21:21:32 +1300 Subject: [PATCH] Fix clippy lint. --- codegen/templates/vec.rs.tera | 2 +- src/f32/coresimd/vec4.rs | 1 - src/f32/neon/vec4.rs | 1 - src/f32/scalar/vec4.rs | 1 - src/f32/sse2/vec4.rs | 1 - src/f32/wasm32/vec4.rs | 1 - src/f64/dvec4.rs | 1 - src/i16/i16vec4.rs | 1 - src/i32/ivec4.rs | 1 - src/i64/i64vec4.rs | 1 - src/i8/i8vec4.rs | 1 - src/u16/u16vec4.rs | 1 - src/u32/uvec4.rs | 1 - src/u64/u64vec4.rs | 1 - src/u8/u8vec4.rs | 1 - 15 files changed, 1 insertion(+), 15 deletions(-) diff --git a/codegen/templates/vec.rs.tera b/codegen/templates/vec.rs.tera index 0c8fa86e..468cf321 100644 --- a/codegen/templates/vec.rs.tera +++ b/codegen/templates/vec.rs.tera @@ -3851,7 +3851,7 @@ impl From<{{ bvec_from_type }}> for {{ self_t }} { {% if bveca_from_type %} {% if bveca_from_type == "BVec4A" %} #[cfg(not(feature = "scalar-math"))] - {% endif %} + {%- endif %} impl From<{{ bveca_from_type }}> for {{ self_t }} { #[inline] fn from(v: {{ bveca_from_type }}) -> Self { diff --git a/src/f32/coresimd/vec4.rs b/src/f32/coresimd/vec4.rs index 24f8559d..fafb60f7 100644 --- a/src/f32/coresimd/vec4.rs +++ b/src/f32/coresimd/vec4.rs @@ -1780,7 +1780,6 @@ impl From for Vec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for Vec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/f32/neon/vec4.rs b/src/f32/neon/vec4.rs index 2a1f093a..2e403989 100644 --- a/src/f32/neon/vec4.rs +++ b/src/f32/neon/vec4.rs @@ -1844,7 +1844,6 @@ impl From for Vec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for Vec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/f32/scalar/vec4.rs b/src/f32/scalar/vec4.rs index e5ef4273..174f385d 100644 --- a/src/f32/scalar/vec4.rs +++ b/src/f32/scalar/vec4.rs @@ -1985,7 +1985,6 @@ impl From for Vec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for Vec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/f32/sse2/vec4.rs b/src/f32/sse2/vec4.rs index 818566ce..9a8a274c 100644 --- a/src/f32/sse2/vec4.rs +++ b/src/f32/sse2/vec4.rs @@ -1862,7 +1862,6 @@ impl From for Vec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for Vec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/f32/wasm32/vec4.rs b/src/f32/wasm32/vec4.rs index a7e32909..f867d0ac 100644 --- a/src/f32/wasm32/vec4.rs +++ b/src/f32/wasm32/vec4.rs @@ -1815,7 +1815,6 @@ impl From for Vec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for Vec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/f64/dvec4.rs b/src/f64/dvec4.rs index b62ced02..0458385b 100644 --- a/src/f64/dvec4.rs +++ b/src/f64/dvec4.rs @@ -1996,7 +1996,6 @@ impl From for DVec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for DVec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/i16/i16vec4.rs b/src/i16/i16vec4.rs index 7e34644f..5b2bfa4f 100644 --- a/src/i16/i16vec4.rs +++ b/src/i16/i16vec4.rs @@ -2072,7 +2072,6 @@ impl From for I16Vec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for I16Vec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/i32/ivec4.rs b/src/i32/ivec4.rs index ede2e6c8..a69f6ca0 100644 --- a/src/i32/ivec4.rs +++ b/src/i32/ivec4.rs @@ -2068,7 +2068,6 @@ impl From for IVec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for IVec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/i64/i64vec4.rs b/src/i64/i64vec4.rs index 0b3d3bb2..ce35d831 100644 --- a/src/i64/i64vec4.rs +++ b/src/i64/i64vec4.rs @@ -2064,7 +2064,6 @@ impl From for I64Vec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for I64Vec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/i8/i8vec4.rs b/src/i8/i8vec4.rs index 2445a84a..2eb4531c 100644 --- a/src/i8/i8vec4.rs +++ b/src/i8/i8vec4.rs @@ -2071,7 +2071,6 @@ impl From for I8Vec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for I8Vec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/u16/u16vec4.rs b/src/u16/u16vec4.rs index 05b6632e..84121fde 100644 --- a/src/u16/u16vec4.rs +++ b/src/u16/u16vec4.rs @@ -1930,7 +1930,6 @@ impl From for U16Vec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for U16Vec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/u32/uvec4.rs b/src/u32/uvec4.rs index 08795b10..d997f5b5 100644 --- a/src/u32/uvec4.rs +++ b/src/u32/uvec4.rs @@ -1928,7 +1928,6 @@ impl From for UVec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for UVec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/u64/u64vec4.rs b/src/u64/u64vec4.rs index 24c997b9..0772b525 100644 --- a/src/u64/u64vec4.rs +++ b/src/u64/u64vec4.rs @@ -1926,7 +1926,6 @@ impl From for U64Vec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for U64Vec4 { #[inline] fn from(v: BVec4A) -> Self { diff --git a/src/u8/u8vec4.rs b/src/u8/u8vec4.rs index 29c0676f..8dbe4fc8 100644 --- a/src/u8/u8vec4.rs +++ b/src/u8/u8vec4.rs @@ -1927,7 +1927,6 @@ impl From for U8Vec4 { } #[cfg(not(feature = "scalar-math"))] - impl From for U8Vec4 { #[inline] fn from(v: BVec4A) -> Self {