From 8128c212ae30ad3842441aebd1cae421c8906fff Mon Sep 17 00:00:00 2001 From: Franz Dietrich Date: Fri, 24 Oct 2025 17:28:51 +0200 Subject: [PATCH] fix unused variable warning --- turtle-lib/src/drawing.rs | 8 ++++---- turtle-lib/src/export_svg.rs | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/turtle-lib/src/drawing.rs b/turtle-lib/src/drawing.rs index 085e06d..5af9b3d 100644 --- a/turtle-lib/src/drawing.rs +++ b/turtle-lib/src/drawing.rs @@ -28,7 +28,7 @@ pub fn render_world(world: &TurtleWorld) { for turtle in &world.turtles { for cmd in &turtle.commands { match cmd { - DrawCommand::Mesh { data, source } => { + DrawCommand::Mesh { data, source: _ } => { // Rendering wie bisher draw_mesh(&data.to_mesh()); // Hier könnte man das source für Debug/Export loggen @@ -39,7 +39,7 @@ pub fn render_world(world: &TurtleWorld) { heading, font_size, color, - source, + source: _, } => { draw_text_command(text, *position, *heading, *font_size, *color); // Hier könnte man das source für Debug/Export loggen @@ -80,7 +80,7 @@ pub fn render_world_with_tweens(world: &TurtleWorld, zoom_level: f32) { for turtle in &world.turtles { for cmd in &turtle.commands { match cmd { - DrawCommand::Mesh { data, source } => { + DrawCommand::Mesh { data, source: _ } => { draw_mesh(&data.to_mesh()); } DrawCommand::Text { @@ -89,7 +89,7 @@ pub fn render_world_with_tweens(world: &TurtleWorld, zoom_level: f32) { heading, font_size, color, - source, + source: _, } => { draw_text_command(text, *position, *heading, *font_size, *color); } diff --git a/turtle-lib/src/export_svg.rs b/turtle-lib/src/export_svg.rs index c29771d..2ab162c 100644 --- a/turtle-lib/src/export_svg.rs +++ b/turtle-lib/src/export_svg.rs @@ -5,7 +5,6 @@ pub mod svg_export { use crate::commands::TurtleCommand; use crate::export::{DrawingExporter, ExportError}; use crate::state::{DrawCommand, TurtleWorld}; - use macroquad::prelude::Vec2; use std::fs::File; use svg::{ node::element::{Circle, Line, Polygon, Text as SvgText},