[librsvg/librsvg-2.46] xml2: use "cloned()"
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.46] xml2: use "cloned()"
- Date: Tue, 15 Oct 2019 16:45:10 +0000 (UTC)
commit aed817e16a1a048398f6ddb42a4ca4e664f7bc98
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Oct 13 12:21:29 2019 +0200
xml2: use "cloned()"
rsvg_internals/src/xml2_load.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/xml2_load.rs b/rsvg_internals/src/xml2_load.rs
index 3dd85d93..97b15e50 100644
--- a/rsvg_internals/src/xml2_load.rs
+++ b/rsvg_internals/src/xml2_load.rs
@@ -344,7 +344,7 @@ impl Xml2Parser {
let ctx = Box::new(StreamCtx {
stream: stream.clone(),
- cancellable: cancellable.map(|c| c.clone()),
+ cancellable: cancellable.cloned(),
gio_error: gio_error.clone(),
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]