[librsvg] node: small cleanup
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] node: small cleanup
- Date: Sun, 30 Jun 2019 08:32:08 +0000 (UTC)
commit fd24ae31a234f28891b6bdf53867d73cebeeeb64
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Jun 30 10:30:55 2019 +0200
node: small cleanup
Make code more explicit, assignment inside Ok() is misleading.
rsvg_internals/src/node.rs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/node.rs b/rsvg_internals/src/node.rs
index 4d9b06b3..2937b9b1 100644
--- a/rsvg_internals/src/node.rs
+++ b/rsvg_internals/src/node.rs
@@ -136,9 +136,11 @@ impl NodeData {
local_name!("transform") => {
return Matrix::parse_str(value)
.attribute(attr)
- .and_then(|affine| Ok(self.transform = affine));
+ .and_then(|affine| {
+ self.transform = affine;
+ Ok(())
+ });
}
-
_ => (),
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]