Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
asukaminato0721 committed Dec 17, 2024
1 parent 351b646 commit 3ec78a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion del-geo-core/src/vec3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ pub fn distance<T>(p0: &[T; 3], p1: &[T; 3]) -> T
where
T: num_traits::Float + MulAssign,
{
let [v0, v1, v2] = p1.sub(&p0);
let [v0, v1, v2] = p1.sub(p0);
(v0 * v0 + v1 * v1 + v2 * v2).sqrt()
}

Expand Down

0 comments on commit 3ec78a7

Please sign in to comment.