style: clear two build warnings
- image_model.rs: drop unnecessary parentheses around a map's array literal return. - text_support.rs: remove dead row_in_column / col_rows computation and its unused `li` binding (the only consumer). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
fc72827428
commit
0d4bd274b4
2 changed files with 1 additions and 21 deletions
|
|
@ -246,14 +246,7 @@ impl ImageModel {
|
|||
let pts: Vec<[f64; 2]> = u
|
||||
.clip_boundary_vertices
|
||||
.iter()
|
||||
.map(|p| {
|
||||
(
|
||||
[
|
||||
p.x * u.x_scale / w_du,
|
||||
p.y * u.y_scale / h_du,
|
||||
]
|
||||
)
|
||||
})
|
||||
.map(|p| [p.x * u.x_scale / w_du, p.y * u.y_scale / h_du])
|
||||
.collect();
|
||||
let mut tris = Vec::with_capacity((pts.len().saturating_sub(2)) * 3);
|
||||
for i in 1..pts.len() - 1 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue