Skip to content

Commit

Permalink
appease clippy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ManevilleF committed Jul 31, 2024
1 parent 765ac62 commit 20826fa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ features = [
"x11",
"tonemapping_luts",
"bevy_gizmos",
"multi_threaded",
# Faster compilation
"dynamic_linking",
]
Expand Down
2 changes: 1 addition & 1 deletion src/algorithms/pathfinding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn reconstruct_path(came_from: &HashMap<Hex, Hex>, end: Hex) -> Vec<Hex> {
/// * `start` - start node
/// * `end` - destination node
/// * `cost` - cost function taking a node pair (`a` -> `b`) and returning the
/// logical cost to go from `a` to `b`
/// logical cost to go from `a` to `b`
///
/// # Examples
///
Expand Down
6 changes: 2 additions & 4 deletions src/hex/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,7 @@ impl Hex {
/// Find in which [`VertexDirection`] wedge `rhs` is relative to `self`.
///
/// > This method can be innaccurate in case of a *tie* between directions,
/// > prefer
/// using [`Self::diagonal_way_to`] instead
/// > prefer using [`Self::diagonal_way_to`] instead
pub fn main_diagonal_to(self, rhs: Self) -> VertexDirection {
self.diagonal_way_to(rhs).unwrap()
}
Expand All @@ -723,8 +722,7 @@ impl Hex {
/// Find in which [`EdgeDirection`] wedge `rhs` is relative to `self`
///
/// > This method can be innaccurate in case of a *tie* between directions,
/// > prefer
/// using [`Self::way_to`] for accuracy
/// > prefer using [`Self::way_to`] for accuracy
#[must_use]
pub fn main_direction_to(self, rhs: Self) -> EdgeDirection {
self.way_to(rhs).unwrap()
Expand Down
3 changes: 1 addition & 2 deletions src/mesh/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ impl<const VERTS: usize, const TRIS: usize> Face<VERTS, TRIS> {
///
/// * `mode` - the insetting behaviour mode
/// * `keep_inner_face` - If set to true the insetted face will be kept,
/// otherwise
/// it will be removed
/// otherwise it will be removed
#[allow(clippy::cast_possible_truncation)]
#[must_use]
pub fn inset(self, mode: InsetScaleMode, scale: f32, keep_inner_face: bool) -> MeshInfo {
Expand Down

0 comments on commit 20826fa

Please sign in to comment.