From 3f7dd5059454d956373c0ec29e87cb278f3f9df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sun, 29 Mar 2020 15:04:11 +0200 Subject: [PATCH] Use `!is_empty()` instead of `len() > 0` --- wgpu/src/renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/src/renderer.rs b/wgpu/src/renderer.rs index 6ceb4105..e847cb64 100644 --- a/wgpu/src/renderer.rs +++ b/wgpu/src/renderer.rs @@ -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);