From 11d59a487c7a765bcb4d77350191144ad80c03fe Mon Sep 17 00:00:00 2001 From: Wai-Shing Luk Date: Sat, 30 Nov 2024 05:35:50 +0000 Subject: [PATCH] fix cargo clippy --- src/ck_plane.rs | 4 ++-- src/euclid_object.rs | 2 +- src/pg_object.rs | 2 +- src/pg_plane.rs | 17 ++++++++--------- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/ck_plane.rs b/src/ck_plane.rs index 26066ee..83d728f 100644 --- a/src/ck_plane.rs +++ b/src/ck_plane.rs @@ -15,7 +15,7 @@ pub trait CayleyKleinPlanePrimitive: ProjectivePlanePrimitive { /// /// * `m_1`: A reference to an object of type Line, which represents a line or a plane in a geometric space. /// * `m_2`: m_2 is a reference to an object of type Line, which is a generic type parameter. The specific -/// type of Line is not specified in the function signature. +/// type of Line is not specified in the function signature. /// /// Returns: /// @@ -55,7 +55,7 @@ where /// Arguments: /// /// * `triangle`: The `triangle` parameter is an array of three elements of type `Point`. Each element represents a -/// point in a triangle. +/// point in a triangle. /// /// Returns: /// diff --git a/src/euclid_object.rs b/src/euclid_object.rs index 9c505a0..076ad7e 100644 --- a/src/euclid_object.rs +++ b/src/euclid_object.rs @@ -110,7 +110,7 @@ impl EuclidPoint { /// Arguments: /// /// * `triangle`: The `triangle` parameter is an array of `EuclidPoint` structs representing the three vertices of -/// a triangle. +/// a triangle. /// /// Returns: /// diff --git a/src/pg_object.rs b/src/pg_object.rs index b83fc54..c582eb8 100644 --- a/src/pg_object.rs +++ b/src/pg_object.rs @@ -7,7 +7,7 @@ use crate::pg_plane::{ProjectivePlane, ProjectivePlanePrimitive}; /// /// * `v_a`: An array of three i64 values representing the first vector. /// * `v_b`: The parameter `v_b` is a reference to an array of `i64` integers with a length of 3. It -/// represents a vector in . +/// represents a vector in . /// /// Returns: /// diff --git a/src/pg_plane.rs b/src/pg_plane.rs index b670151..3a5fa13 100644 --- a/src/pg_plane.rs +++ b/src/pg_plane.rs @@ -79,8 +79,8 @@ where /// /// * `coline_1`: The parameter `coline_1` is an array of length 3 containing elements of type `Point`. /// * `coline_2`: The `coline_2` parameter is an array of three points `[pt_d, pt_e, pt_f]` in a projective plane. Each -/// point is represented by a type `Point` that implements the `ProjectivePlanePrimitive` trait, and `Line` is a type -/// that implements the `ProjectivePlane +/// point is represented by a type `Point` that implements the `ProjectivePlanePrimitive` trait, and `Line` is a type +/// that implements the `ProjectivePlane /// /// Returns: /// @@ -106,7 +106,7 @@ where /// Arguments: /// /// * `triangle`: The `triangle` parameter is an array of length 3 containing points that define a -/// triangle in a projective plane. Each element of the array represents a vertex of the triangle. +/// triangle in a projective plane. Each element of the array represents a vertex of the triangle. /// /// ```svgbob /// a @@ -164,8 +164,7 @@ where /// Arguments: /// /// * `tri1`: An array of 3 points representing the first triangle in the projective plane. -/// * `tri2`: tri2 is an array of 3 points representing the vertices of a triangle in a projective -/// plane. +/// * `tri2`: tri2 is an array of 3 points representing the vertices of a triangle in a projective plane. /// /// Returns: /// @@ -200,8 +199,8 @@ pub trait ProjectivePlane: ProjectivePlanePrimitive( pt_p: &Point, @@ -252,8 +251,8 @@ where /// /// * `origin`: The `origin` parameter represents the origin point in the projective plane. /// * `mirror`: The `mirror` parameter represents a mirror line or mirror plane in a projective -/// geometry. It is used to perform an involution transformation on a point `pt_p` with respect to an -/// origin point `origin`. +/// geometry. It is used to perform an involution transformation on a point `pt_p` with respect to an +/// origin point `origin`. /// * `pt_p`: The parameter `pt_p` represents a point in the projective plane. /// /// Returns: