Fix some clippy lints

This commit is contained in:
Jeremy Soller 2023-11-15 09:21:13 -07:00
parent 6536231dfc
commit 19ae07bd3b
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
5 changed files with 18 additions and 41 deletions

View file

@ -1251,12 +1251,10 @@ impl ShapeLine {
layout_lines.push(LayoutLine {
w: if align != Align::Justified {
visual_line.w
} else if self.rtl {
start_x - x
} else {
if self.rtl {
start_x - x
} else {
x
}
x
},
max_ascent: max_ascent * font_size,
max_descent: max_descent * font_size,