diff --git a/crates/bevy_render/src/mesh/shape/regular_polygon.rs b/crates/bevy_render/src/mesh/shape/regular_polygon.rs index 8c924b6868e2d..a2d1a2099991a 100644 --- a/crates/bevy_render/src/mesh/shape/regular_polygon.rs +++ b/crates/bevy_render/src/mesh/shape/regular_polygon.rs @@ -77,10 +77,10 @@ impl Default for Circle { impl Circle { /// Creates a circle in the xy plane pub fn new(radius: f32) -> Self { - return Self { + Self { radius, ..Default::default() - }; + } } }