forked from 1b-agent/opencadstudio-upstream
style(tolerance): drop an unneeded mut on the cell-run closure
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
1 parent
6e2195d62f
commit
e9976270f6
1 file changed
+1
-1
@@ -82,7 +82,7 @@ fn parse_gdt_rows(raw: &str) -> Vec<Vec<Cell>> {
|
||||
/// 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(),
|
||||
|
||||
Reference in new issue
Block a user