forked from 1b-agent/opencadstudio-upstream
style: apply cargo fmt across workspace
This commit is contained in:
1 parent
85710e5454
commit
9cf9ff2c5c
531 files changed
+57740
-33906
No files matched your search
@@ -102,7 +102,11 @@ pub fn dropdown_popup_width<'a>(
|
||||
min: f32,
|
||||
) -> f32 {
|
||||
let max_units = labels
|
||||
.map(|l| l.chars().map(|c| if is_wide(c) { 2.0 } else { 1.0 }).sum::<f32>())
|
||||
.map(|l| {
|
||||
l.chars()
|
||||
.map(|c| if is_wide(c) { 2.0 } else { 1.0 })
|
||||
.sum::<f32>()
|
||||
})
|
||||
.fold(0.0f32, f32::max);
|
||||
(max_units * font_size * 0.68 + chrome).max(min)
|
||||
}
|
||||
Reference in new issue
Block a user