[librsvg: 3/43] handle: use is_none
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 3/43] handle: use is_none
- Date: Tue, 15 Oct 2019 00:05:44 +0000 (UTC)
commit 1946bff5afa0da376f0eca927b30eebd464dc11a
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Oct 13 12:14:18 2019 +0200
handle: use is_none
rsvg_internals/src/handle.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/handle.rs b/rsvg_internals/src/handle.rs
index 6eeff69f..42bf513d 100644
--- a/rsvg_internals/src/handle.rs
+++ b/rsvg_internals/src/handle.rs
@@ -254,7 +254,7 @@ impl Handle {
size_callback: &SizeCallback,
is_testing: bool,
) -> Result<RsvgPositionData, RenderingError> {
- if let None = id {
+ if id.is_none() {
return Ok(RsvgPositionData { x: 0, y: 0 });
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]