Skip to content

Commit a7cf839

Browse files
committed
Fix clippy
1 parent eda5e6f commit a7cf839

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/geometry/shape_views/collider_view.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,11 @@ impl<'a> ColliderView<'a> {
251251
ColliderView::RoundConvexPolyhedron(RoundConvexPolyhedronView { raw }) => {
252252
SharedShape::new(raw.clone())
253253
}
254-
ColliderView::Custom(i) => SharedShape(i.clone_box().into()),
254+
ColliderView::Custom(i) => SharedShape(i.clone_dyn().into()),
255255
}
256256
}
257257

258+
/// Convert to &dyn [`Shape`].
258259
pub fn to_shape(&self) -> &dyn Shape {
259260
match self {
260261
ColliderView::Ball(BallView { raw }) => *raw,

0 commit comments

Comments
 (0)