Use !is_empty() instead of len() > 0

This commit is contained in:
Héctor Ramón Jiménez 2020-03-29 15:04:11 +02:00
parent f9b73607f5
commit 3f7dd50594

View File

@ -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);