[librsvg/alatiera-master-patch-30985] node.rs: Match on reference.
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/alatiera-master-patch-30985] node.rs: Match on reference.
- Date: Sun, 27 May 2018 12:49:20 +0000 (UTC)
commit 4e3394575d035b51fd56e48e7464b12edc9d94c2
Author: Jordan Petridis <jordanpetridis protonmail com>
Date: Sun May 27 12:48:50 2018 +0000
node.rs: Match on reference.
While rustc 1.26 is smarter and can figure it out,
this was not able to compile on all the other rustc version librsvg currently supports.
rsvg_internals/src/node.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/node.rs b/rsvg_internals/src/node.rs
index ed2e98e7..b9d37db1 100644
--- a/rsvg_internals/src/node.rs
+++ b/rsvg_internals/src/node.rs
@@ -343,7 +343,7 @@ impl Children {
// true if self.next_back's next sibling is self.next
fn finished(&self) -> bool {
match &self.next_back {
- Some(next_back) => {
+ &Some(next_back) => {
next_back
.next_sib
.borrow()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]