Fix latest clippy lints
This commit is contained in:
parent
7420ea7a6b
commit
3e82ab069e
3 changed files with 16 additions and 18 deletions
|
|
@ -543,9 +543,11 @@ pub fn draw<T, Renderer>(
|
|||
content: label,
|
||||
size: text_size,
|
||||
font: font.clone(),
|
||||
color: is_selected
|
||||
.then(|| style.text_color)
|
||||
.unwrap_or(style.placeholder_color),
|
||||
color: if is_selected {
|
||||
style.text_color
|
||||
} else {
|
||||
style.placeholder_color
|
||||
},
|
||||
bounds: Rectangle {
|
||||
x: bounds.x + f32::from(padding.left),
|
||||
y: bounds.center_y() - text_size / 2.0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue