From 1426e7dd1842490ff2f2282c1f4be07f8bf41ea4 Mon Sep 17 00:00:00 2001 From: Stefan Kroboth Date: Thu, 14 Dec 2023 08:23:23 +0100 Subject: [PATCH] Fixed clippy lints which complained about unused re-exports --- argmin-math/src/lib.rs | 4 ++++ argmin-math/src/nalgebra_m/mod.rs | 2 ++ argmin-math/src/ndarray_m/mod.rs | 2 ++ argmin-math/src/primitives/mod.rs | 2 ++ argmin-math/src/vec/mod.rs | 2 ++ 5 files changed, 12 insertions(+) diff --git a/argmin-math/src/lib.rs b/argmin-math/src/lib.rs index 2bc381528..d54e98ee6 100644 --- a/argmin-math/src/lib.rs +++ b/argmin-math/src/lib.rs @@ -212,21 +212,25 @@ cfg_if::cfg_if! { #[cfg(feature = "primitives")] mod primitives; #[cfg(feature = "primitives")] +#[allow(unused_imports)] pub use crate::primitives::*; #[cfg(feature = "ndarray_all")] mod ndarray_m; #[cfg(feature = "ndarray_all")] +#[allow(unused_imports)] pub use crate::ndarray_m::*; #[cfg(feature = "nalgebra_all")] mod nalgebra_m; #[cfg(feature = "nalgebra_all")] +#[allow(unused_imports)] pub use crate::nalgebra_m::*; #[cfg(feature = "vec")] mod vec; #[cfg(feature = "vec")] +#[allow(unused_imports)] pub use crate::vec::*; use anyhow::Error; diff --git a/argmin-math/src/nalgebra_m/mod.rs b/argmin-math/src/nalgebra_m/mod.rs index 2c27131e3..24f835f2f 100644 --- a/argmin-math/src/nalgebra_m/mod.rs +++ b/argmin-math/src/nalgebra_m/mod.rs @@ -5,6 +5,8 @@ // http://opensource.org/licenses/MIT>, at your option. This file may not be // copied, modified, or distributed except according to those terms. +#![allow(unused_imports)] + mod add; mod conj; mod div; diff --git a/argmin-math/src/ndarray_m/mod.rs b/argmin-math/src/ndarray_m/mod.rs index a31488ab7..7b9b99fbe 100644 --- a/argmin-math/src/ndarray_m/mod.rs +++ b/argmin-math/src/ndarray_m/mod.rs @@ -5,6 +5,8 @@ // http://opensource.org/licenses/MIT>, at your option. This file may not be // copied, modified, or distributed except according to those terms. +#![allow(unused_imports)] + mod add; mod conj; mod div; diff --git a/argmin-math/src/primitives/mod.rs b/argmin-math/src/primitives/mod.rs index c8a3f5d0a..8acb4b19b 100644 --- a/argmin-math/src/primitives/mod.rs +++ b/argmin-math/src/primitives/mod.rs @@ -5,6 +5,8 @@ // http://opensource.org/licenses/MIT>, at your option. This file may not be // copied, modified, or distributed except according to those terms. +#![allow(unused_imports)] + mod add; mod conj; mod div; diff --git a/argmin-math/src/vec/mod.rs b/argmin-math/src/vec/mod.rs index cfce7ea76..1f9cbe283 100644 --- a/argmin-math/src/vec/mod.rs +++ b/argmin-math/src/vec/mod.rs @@ -5,6 +5,8 @@ // http://opensource.org/licenses/MIT>, at your option. This file may not be // copied, modified, or distributed except according to those terms. +#![allow(unused_imports)] + mod add; mod conj; mod div;