Skip to content

Commit

Permalink
fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
luk036 committed Nov 30, 2024
1 parent fa9a174 commit 11d59a4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/ck_plane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub trait CayleyKleinPlanePrimitive<Dual>: ProjectivePlanePrimitive<Dual> {
///
/// * `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:
///
Expand Down Expand Up @@ -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:
///
Expand Down
2 changes: 1 addition & 1 deletion src/euclid_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
///
Expand Down
2 changes: 1 addition & 1 deletion src/pg_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
///
Expand Down
17 changes: 8 additions & 9 deletions src/pg_plane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Line>` trait, and `Line` is a type
/// that implements the `ProjectivePlane
/// point is represented by a type `Point` that implements the `ProjectivePlanePrimitive<Line>` trait, and `Line` is a type
/// that implements the `ProjectivePlane
///
/// Returns:
///
Expand All @@ -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
Expand Down Expand Up @@ -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:
///
Expand Down Expand Up @@ -200,8 +199,8 @@ pub trait ProjectivePlane<Dual, Value: Default + Eq>: ProjectivePlanePrimitive<D
/// * `ln_l`: The parameter `ln_l` represents a line in a projective plane.
/// * `pt_a`: The parameter `pt_a` represents a point in the projective plane.
/// * `pt_b`: The parameter `pt_b` represents a value of type `Value` which is used as an argument in
/// the function `check_axiom2`. The specific meaning or purpose of `pt_b` would depend on the
/// implementation details of the `ProjectivePlane` trait and its associated types `Point`
/// the function `check_axiom2`. The specific meaning or purpose of `pt_b` would depend on the
/// implementation details of the `ProjectivePlane` trait and its associated types `Point`
#[allow(dead_code)]
pub fn check_axiom2<Point, Line, Value>(
pt_p: &Point,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 11d59a4

Please sign in to comment.