[librsvg/librsvg-2.46] svg: use is_empty
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.46] svg: use is_empty
- Date: Tue, 15 Oct 2019 16:45:00 +0000 (UTC)
commit 935358a74f4db3f5a40ab1e0981b693d546cffb6
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Oct 13 12:18:28 2019 +0200
svg: use is_empty
rsvg_internals/src/svg.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/svg.rs b/rsvg_internals/src/svg.rs
index daa0f918..f60ad413 100644
--- a/rsvg_internals/src/svg.rs
+++ b/rsvg_internals/src/svg.rs
@@ -183,7 +183,7 @@ fn load_image(
content_type,
} = io::acquire_data(&aurl, None)?;
- if bytes.len() == 0 {
+ if bytes.is_empty() {
return Err(LoadingError::EmptyData);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]