fix clippy lints

This commit is contained in:
2025-10-24 17:35:23 +02:00
parent a3cad7d1bc
commit 9831008b9f
3 changed files with 13 additions and 1 deletions
+6
View File
@@ -9,6 +9,7 @@ pub enum ExportError {
// Weitere Formate können ergänzt werden
}
#[derive(Clone, Copy, Debug)]
pub enum DrawingFormat {
#[cfg(feature = "svg")]
Svg,
@@ -16,5 +17,10 @@ pub enum DrawingFormat {
}
pub trait DrawingExporter {
/// Export the drawing to the specified format and filename
///
/// # Errors
///
/// Returns an error if the export fails (e.g., file I/O error)
fn export(&self, world: &TurtleWorld, filename: &str) -> Result<(), ExportError>;
}