Fix some clippy lints
This commit is contained in:
parent
6536231dfc
commit
19ae07bd3b
5 changed files with 18 additions and 41 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue