From e9976270f611603eda6e6cd3e96bc217670bb3dc Mon Sep 17 00:00:00 2001 From: Hakan Seven Date: Wed, 15 Jul 2026 22:55:51 +0300 Subject: [PATCH] style(tolerance): drop an unneeded mut on the cell-run closure Co-Authored-By: Claude Opus 4.8 --- src/entities/tolerance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/tolerance.rs b/src/entities/tolerance.rs index cf529026b..3f0bf9f8e 100644 --- a/src/entities/tolerance.rs +++ b/src/entities/tolerance.rs @@ -82,7 +82,7 @@ fn parse_gdt_rows(raw: &str) -> Vec> { /// than translated into some other character first. fn parse_cell(s: &str) -> Cell { let mut runs: Cell = Vec::new(); - let mut push = |ch: char, font: &'static str, runs: &mut Cell| match runs.last_mut() { + let push = |ch: char, font: &'static str, runs: &mut Cell| match runs.last_mut() { Some(r) if r.font == font => r.text.push(ch), _ => runs.push(Run { text: ch.to_string(),