mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Clippy
This commit is contained in:
@@ -497,6 +497,7 @@ fn log_input_actions(
|
||||
mut er_editor_actions: EventReader<EditorAction>,
|
||||
) {
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
#[allow(dead_code)] // Spurious warning; these fields _are_ being read by the `Debug` impl
|
||||
enum InputAction {
|
||||
Camera(CameraAction),
|
||||
Selection(SelectionAction),
|
||||
|
||||
@@ -14,8 +14,8 @@ use crate::{
|
||||
};
|
||||
|
||||
use super::{
|
||||
material::GizmoMaterial, on_gizmo_element_hover, on_gizmo_element_unhover, GizmoMats,
|
||||
GizmoMeshes, InitialTransform, TransformGizmo, TransformGizmoBundle, GIZMO_RENDER_LAYER,
|
||||
on_gizmo_element_hover, on_gizmo_element_unhover, GizmoMats, GizmoMeshes, InitialTransform,
|
||||
TransformGizmo, TransformGizmoBundle, GIZMO_RENDER_LAYER,
|
||||
};
|
||||
|
||||
#[derive(Component)]
|
||||
|
||||
@@ -164,7 +164,7 @@ fn update_selection(
|
||||
cmd.remove_resource::<Selection>();
|
||||
}
|
||||
}
|
||||
(Lifecycle::Ongoing, input::Selection::Marquee(Rect { min, max })) => {
|
||||
(Lifecycle::Ongoing, input::Selection::Marquee(Rect { min: _, max: _ })) => {
|
||||
// TODO
|
||||
// let center = (*max - *min) / 2.;
|
||||
// let width = max.x - min.x;
|
||||
@@ -177,7 +177,7 @@ fn update_selection(
|
||||
// Color::rgba(1., 1., 0., 0.4),
|
||||
// );
|
||||
}
|
||||
(Lifecycle::Stop, input::Selection::Marquee(Rect { min, max })) => {
|
||||
(Lifecycle::Stop, input::Selection::Marquee(Rect { min: _, max: _ })) => {
|
||||
// TODO
|
||||
}
|
||||
_ => {}
|
||||
|
||||
Reference in New Issue
Block a user