From e67a658e0064eee2a313c77494dd4a03e9fdf63c Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Sun, 3 Aug 2025 20:09:50 -0700 Subject: [PATCH] Group the parameters of the scene push methods --- app-proto/src/components/display.rs | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/app-proto/src/components/display.rs b/app-proto/src/components/display.rs index 09970de..a0cdba6 100644 --- a/app-proto/src/components/display.rs +++ b/app-proto/src/components/display.rs @@ -54,11 +54,8 @@ impl SceneSpheres { } fn push( - &mut self, - representation: DVector, - color: ElementColor, - opacity: f32, - highlight: f32, + &mut self, representation: DVector, + color: ElementColor, opacity: f32, highlight: f32, ) { self.representations.push(representation); self.colors_with_opacity.push(combine_channels(color, opacity)); @@ -84,12 +81,8 @@ impl ScenePoints { } fn push( - &mut self, - representation: DVector, - color: ElementColor, - opacity: f32, - highlight: f32, - selected: bool, + &mut self, representation: DVector, + color: ElementColor, opacity: f32, highlight: f32, selected: bool, ) { self.representations.push(representation); self.colors_with_opacity.push(combine_channels(color, opacity));