From b6e2020815b78a18df041af19faff88b867185d1 Mon Sep 17 00:00:00 2001 From: Timo Betcke Date: Sun, 15 Dec 2024 16:37:08 +0000 Subject: [PATCH] Fixing clippy errors --- examples/approx_inv_accuracy.rs | 2 +- examples/approx_inv_sqrt_accuracy.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/approx_inv_accuracy.rs b/examples/approx_inv_accuracy.rs index 0574f255..64f77fda 100644 --- a/examples/approx_inv_accuracy.rs +++ b/examples/approx_inv_accuracy.rs @@ -1,4 +1,4 @@ -//! Test the accuracy of the inverse sqrt +//! Test the accuracy of the inverse const NSAMPLES: usize = 10000; use rand::prelude::*; diff --git a/examples/approx_inv_sqrt_accuracy.rs b/examples/approx_inv_sqrt_accuracy.rs index 0334cfe6..72640e71 100644 --- a/examples/approx_inv_sqrt_accuracy.rs +++ b/examples/approx_inv_sqrt_accuracy.rs @@ -1,5 +1,6 @@ //! Test the accuracy of the inverse sqrt +#[allow(dead_code)] const NSAMPLES: usize = 10000; use rand::prelude::*; use rlst::SimdFor; @@ -53,6 +54,7 @@ fn main() { println!("Maximum relative error f64: {:.2E}", max_error_f64); } +#[allow(dead_code)] #[cfg(target_arch = "x86_64")] fn main() { fn rel_diff_sqrt_f32(a: f32, b: f32) -> f32 {