mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-24 10:16:59 -06:00
style: apply rustfmt to warichu helper
This commit is contained in:
@@ -261,15 +261,7 @@ fn position_warichu_rows(
|
||||
}
|
||||
}
|
||||
|
||||
fn shift_non_member_glyphs(
|
||||
line: &mut [PlacedGlyph],
|
||||
members: &[usize],
|
||||
old_xs: &[f64],
|
||||
old_x0: f64,
|
||||
old_right: f64,
|
||||
delta: f64,
|
||||
scale: f64,
|
||||
) {
|
||||
fn shift_non_member_glyphs(line: &mut [PlacedGlyph], members: &[usize], old_xs: &[f64], old_x0: f64, old_right: f64, delta: f64, scale: f64) {
|
||||
let mut placed: Vec<(f64, f64)> = old_xs.iter().enumerate().map(|(i, ox)| (*ox, line[members[i]].x)).collect();
|
||||
placed.sort_by(|a, b| a.0.total_cmp(&b.0));
|
||||
let mut member_at = vec![false; line.len()];
|
||||
|
||||
Reference in New Issue
Block a user