Collapse conditional and please clippy
This commit is contained in:
parent
2097a56b58
commit
17a4d817c4
2 changed files with 6 additions and 5 deletions
|
|
@ -137,17 +137,17 @@ impl Backend {
|
|||
continue;
|
||||
}
|
||||
|
||||
if !layer.text.is_empty() {
|
||||
if !self.text_pipeline.prepare(
|
||||
if !layer.text.is_empty()
|
||||
&& !self.text_pipeline.prepare(
|
||||
device,
|
||||
queue,
|
||||
&layer.text,
|
||||
layer.bounds,
|
||||
scale_factor,
|
||||
target_size,
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue