diff --git a/src/main.rs b/src/main.rs index d2c14e6..14e7dd5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 { @@ -1927,9 +1927,6 @@ fn spawn_obstacle(commands: &mut Commands, obstacle: &Obstacle) { )); }); } - _ => { - info!("{:?} skipped -- not implemented.", obstacle); - } } }