Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Jul 10, 2024
1 parent 731827b commit fde97fe
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1806,12 +1806,12 @@ fn drawing_mouse_movement_system(
}

if let Some(segments) = filtered_segments.first() {
line_state.segments = segments.clone();
line_state.segments.clone_from(segments);
line_state.adds = filtered_adds.first().cloned().unwrap();
line_state.stop = filtered_stops.first().cloned().unwrap();
line_state.valid = true;
} else if let Some(segments) = possible.first() {
line_state.segments = segments.clone();
line_state.segments.clone_from(segments);
line_state.adds = vec![];
line_state.valid = false;
} else {
Expand Down Expand Up @@ -1927,9 +1927,6 @@ fn spawn_obstacle(commands: &mut Commands, obstacle: &Obstacle) {
));
});
}
_ => {
info!("{:?} skipped -- not implemented.", obstacle);
}
}
}

Expand Down

0 comments on commit fde97fe

Please sign in to comment.