From a64732fa977988c308851bc940d6c2a7e151706d Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 13 Feb 2023 11:40:12 -0700 Subject: [PATCH] style: move clippy allows to specific lines of code Signed-off-by: Stephen Waits --- src/lib.rs | 1 - src/network_coordinate.rs | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fe2f3f7..6442bb9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -104,7 +104,6 @@ #![deny(clippy::nursery)] #![deny(clippy::unwrap_used)] #![allow(clippy::type_repetition_in_bounds)] -#![allow(clippy::module_name_repetitions)] mod height_vector; mod vector; diff --git a/src/network_coordinate.rs b/src/network_coordinate.rs index 959d62e..fc4cf49 100644 --- a/src/network_coordinate.rs +++ b/src/network_coordinate.rs @@ -63,12 +63,14 @@ pub struct NetworkCoordinate { /// /// This type alias is just for convenience. It's functionally equivalent to /// `NetworkCoordinate<2>`. For more information, see [`NetworkCoordinate`]. +#[allow(clippy::module_name_repetitions)] pub type NetworkCoordinate2D = NetworkCoordinate<2>; /// A 3D [`NetworkCoordinate`]. Includes a 3D Euclidean position and a height. /// /// This type alias is just for convenience. It's functionally equivalent to /// `NetworkCoordinate<3>`. For more information, see [`NetworkCoordinate`]. +#[allow(clippy::module_name_repetitions)] pub type NetworkCoordinate3D = NetworkCoordinate<3>; //