Skip to content

Commit

Permalink
Cargo fmt fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
urholaukkarinen committed May 21, 2024
1 parent f1e1632 commit c515b9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions crates/transform-gizmo/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/bevy/src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn draw_gizmo_result(ui: &mut egui::Ui, gizmo_result: Option<GizmoResult>) {
)
}
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();
Expand Down

0 comments on commit c515b9d

Please sign in to comment.