Skip to content

Commit dff11a0

Browse files
committed
clippy and visual bug
1 parent 60fb144 commit dff11a0

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/game/lyra/beam.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ pub fn process_beam_actions(
360360
player_inventory.snapping = *val;
361361
}
362362
BeamAction::Preview => {
363-
if player_inventory.current_color == None
363+
if player_inventory.current_color.is_none()
364364
|| !player_inventory.can_shoot_color(player_inventory.current_color.unwrap())
365365
{
366366
continue;

src/game/lyra/indicator.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ impl Default for ShardMovingState {
196196
#[derive(Component)]
197197
pub struct WasChilded;
198198

199+
#[allow(clippy::type_complexity)]
199200
pub fn update_light_indicator(
200201
lyra: Single<
201202
(
@@ -278,7 +279,7 @@ pub fn update_light_indicator(
278279
to: LerpTranslationTarget::Position(
279280
source_transform
280281
.translation
281-
.with_z(source_transform.translation.z + 1.),
282+
.with_z(source_transform.translation.z + 0.01),
282283
),
283284
lerp: 0.2,
284285
});

src/ui/pause.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ pub fn check_save_state(save: &SaveData) -> [bool; 10] {
257257
out[8] = save.level.0.iter().any(|lvl| {
258258
lvl.solutions_used
259259
.iter()
260-
.any(|sol| sol.light_order.iter().count() < DESIRED_COUNTS[lvl.sorted_level_index])
260+
.any(|sol| sol.light_order.len() < DESIRED_COUNTS[lvl.sorted_level_index])
261261
});
262262

263263
let official_sols: [Vec<Vec<LightColor>>; 15] = [

0 commit comments

Comments
 (0)