From c515b9d1a71d1bb67acbd9d17156b2decca510ea Mon Sep 17 00:00:00 2001 From: Urho Laukkarinen Date: Tue, 21 May 2024 21:37:45 +0300 Subject: [PATCH] Cargo fmt fixes --- crates/transform-gizmo/src/config.rs | 7 +++---- examples/bevy/src/gui.rs | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/transform-gizmo/src/config.rs b/crates/transform-gizmo/src/config.rs index 1222829..6823795 100644 --- a/crates/transform-gizmo/src/config.rs +++ b/crates/transform-gizmo/src/config.rs @@ -378,10 +378,9 @@ impl GizmoMode { pub fn kind(&self) -> GizmoModeKind { match self { - Self::RotateX - | Self::RotateY - | Self::RotateZ - | Self::RotateView => GizmoModeKind::Rotate, + Self::RotateX | Self::RotateY | Self::RotateZ | Self::RotateView => { + GizmoModeKind::Rotate + } Self::TranslateX | Self::TranslateY | Self::TranslateZ diff --git a/examples/bevy/src/gui.rs b/examples/bevy/src/gui.rs index e00cd60..54dc21f 100644 --- a/examples/bevy/src/gui.rs +++ b/examples/bevy/src/gui.rs @@ -57,7 +57,7 @@ fn draw_gizmo_result(ui: &mut egui::Ui, gizmo_result: Option) { ) } GizmoResult::Scale { total } => { - format!("Scale: ({:.2}, {:.2}, {:.2})", total.x, total.y, total.z, ) + format!("Scale: ({:.2}, {:.2}, {:.2})", total.x, total.y, total.z,) } GizmoResult::Arcball { delta: _, total } => { let (axis, angle) = DQuat::from(total).to_axis_angle();