fix clippy and check it on ci (#18)

This commit is contained in:
extrawurst
2025-03-26 01:20:38 +01:00
committed by GitHub
parent 17406b1f00
commit 9842148010
14 changed files with 85 additions and 53 deletions

View File

@@ -48,8 +48,8 @@ fn on_start_cutscene(
let move_end = cutscene_movement
.iter()
.find(|(_, _, target)| cutscene == target.target.clone().unwrap_or_default())
.map(|(t, _, _)| t.clone())
.unwrap_or_else(|| t.clone());
.map(|(t, _, _)| *t)
.unwrap_or_else(|| *t);
let Some((target, _)) = cam_target.iter().find(|(_, camera_target)| {
camera_target.targetname == target.target.clone().unwrap_or_default()