Skip to content

Commit

Permalink
remove unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Harper committed May 9, 2024
1 parent a83ce55 commit ed271ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_math/src/cubic_splines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ impl CubicSegment<Vec2> {
pub fn new_bezier(p1: impl Into<Vec2>, p2: impl Into<Vec2>) -> Self {
let (p0, p3) = (Vec2::ZERO, Vec2::ONE);
let bezier = CubicBezier::new([[p0, p1.into(), p2.into(), p3]]).to_curve();
bezier.segments[0].clone()
bezier.segments[0]
}

/// Maximum allowable error for iterative Bezier solve
Expand Down

0 comments on commit ed271ce

Please sign in to comment.