From 689c074e687304aba4a8fb24cb637a0bd6422f77 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Wed, 2 Mar 2022 14:42:15 -0700 Subject: [PATCH] Fix unnecessary return --- crates/bevy_render/src/mesh/shape/regular_polygon.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_render/src/mesh/shape/regular_polygon.rs b/crates/bevy_render/src/mesh/shape/regular_polygon.rs index 8c924b6868e2d1..a2d1a2099991ad 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() - }; + } } }