Use !is_empty() instead of len() > 0
This commit is contained in:
parent
f9b73607f5
commit
3f7dd50594
1 changed files with 1 additions and 1 deletions
|
|
@ -386,7 +386,7 @@ impl Renderer {
|
||||||
|
|
||||||
#[cfg(any(feature = "image", feature = "svg"))]
|
#[cfg(any(feature = "image", feature = "svg"))]
|
||||||
{
|
{
|
||||||
if layer.images.len() > 0 {
|
if !layer.images.is_empty() {
|
||||||
let scaled = transformation
|
let scaled = transformation
|
||||||
* Transformation::scale(scale_factor, scale_factor);
|
* Transformation::scale(scale_factor, scale_factor);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue