Skip to content

Commit

Permalink
satisfy rust linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Kolligs committed May 8, 2024
1 parent a5499bf commit 1a3d87f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions crates/transform-gizmo/src/gizmo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ impl Gizmo {
},
]
.iter()
.filter_map(|&params|
.filter_map(|&params| {
if self
.config
.gizmo_visibility
Expand All @@ -357,7 +357,7 @@ impl Gizmo {
} else {
None
}
),
}),
);
if self.config.gizmo_visibility.rotation_arc_ball {
self.subgizmos
Expand Down Expand Up @@ -387,7 +387,7 @@ impl Gizmo {
},
]
.iter()
.filter_map(|&params|
.filter_map(|&params| {
if self
.config
.gizmo_visibility
Expand All @@ -398,7 +398,7 @@ impl Gizmo {
} else {
None
}
),
}),
);

// Plane subgizmos are not added when both translation and scaling are enabled.
Expand All @@ -419,7 +419,7 @@ impl Gizmo {
},
]
.iter()
.filter_map(|&params|
.filter_map(|&params| {
if self
.config
.gizmo_visibility
Expand All @@ -430,7 +430,7 @@ impl Gizmo {
} else {
None
}
),
}),
);
}
}
Expand All @@ -453,7 +453,7 @@ impl Gizmo {
},
]
.iter()
.filter_map(|& params|
.filter_map(|&params| {
if self
.config
.gizmo_visibility
Expand All @@ -464,7 +464,7 @@ impl Gizmo {
} else {
None
}
),
}),
);

// Uniform scaling subgizmo is added when only scaling is enabled.
Expand Down Expand Up @@ -500,7 +500,7 @@ impl Gizmo {
},
]
.iter()
.filter_map(|&params|
.filter_map(|&params| {
if self
.config
.gizmo_visibility
Expand All @@ -511,7 +511,7 @@ impl Gizmo {
} else {
None
}
),
}),
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/transform-gizmo/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub use crate::config::{
GizmoDirection, GizmoMode, GizmoOrientation, GizmoConfig, GizmoVisuals, GizmoVisibility,
GizmoConfig, GizmoDirection, GizmoMode, GizmoOrientation, GizmoVisibility, GizmoVisuals,
};
pub use crate::gizmo::{Gizmo, GizmoDrawData, GizmoInteraction, GizmoResult};

Expand Down

0 comments on commit 1a3d87f

Please sign in to comment.