EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
#1190: clear existing STL Clippy warning
Kristian Myram5586b40cf063
diff --git a/crates/model/src/stl.rs b/crates/model/src/stl.rsindex 6684858ad..34e9a7f06 100644--- a/crates/model/src/stl.rs+++ b/crates/model/src/stl.rs@@ -175,10 +175,8 @@ fn ascii(bytes: &[u8]) -> Result<Model> {let Some(key) = it.next() else { continue };let bad = || perr(format!("STL line {}: expected three numbers", ln + 1));match key.to_ascii_lowercase().as_str() {- "solid" => {- if name.is_none() {- name = Some(line.get(5..).unwrap_or("").trim().to_string());- }+ "solid" if name.is_none() => {+ name = Some(line.get(5..).unwrap_or("").trim().to_string());}"facet" => {// `facet normal nx ny nz`