Use !is_empty()
instead of len() > 0
This commit is contained in:
parent
f9b73607f5
commit
3f7dd50594
@ -386,7 +386,7 @@ impl Renderer {
|
||||
|
||||
#[cfg(any(feature = "image", feature = "svg"))]
|
||||
{
|
||||
if layer.images.len() > 0 {
|
||||
if !layer.images.is_empty() {
|
||||
let scaled = transformation
|
||||
* Transformation::scale(scale_factor, scale_factor);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user