Commit: 8b46470
Parent: 382fdf1

Follow clippy

Mårten Åsberg committed on 2026-04-14 at 20:47
src/bunny.rs +9 -8
diff --git a/src/bunny.rs b/src/bunny.rs
index 7f681fe..6027ee8 100644
@@ -34,16 +34,17 @@ struct Bunny {
jump_state: JumpState,
}
#[derive(Default)]
enum JumpState {
#[default]
Sitting,
Jumping { from: Vec3, to: Vec3 },
Cooldown { ready: Duration },
}
impl Default for JumpState {
fn default() -> Self {
JumpState::Sitting
}
Jumping {
from: Vec3,
to: Vec3,
},
Cooldown {
ready: Duration,
},
}
const DETECTION_DISTANCE: f32 = 3.0;
src/dog.rs +2 -2
diff --git a/src/dog.rs b/src/dog.rs
index 5d260f9..2669a76 100644
@@ -30,7 +30,7 @@ impl DogSystems for App {
}
}
#[derive(Component, Default)]
#[derive(Component)]
pub struct Dog;
const SPEED: f32 = 10.0;
@@ -45,7 +45,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>, mut meshes: Res
),
Transform::from_xyz(0.0, 0.0, 0.0),
Mesh3d(mesh),
Dog::default(),
Dog,
));
}