[librsvg: 26/43] xml: cleanup map_err



commit 32df3b7591268f133646df505a4ab8280d98db5c
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Oct 13 12:28:32 2019 +0200

    xml: cleanup map_err

 rsvg_internals/src/xml.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/xml.rs b/rsvg_internals/src/xml.rs
index 4757b5ea..a584499d 100644
--- a/rsvg_internals/src/xml.rs
+++ b/rsvg_internals/src/xml.rs
@@ -627,8 +627,8 @@ pub fn xml_load_from_possibly_compressed_stream(
 
     state.inner.borrow_mut().weak = Some(Rc::downgrade(&state));
 
-    let stream = get_input_stream_for_loading(stream, cancellable)
-        .map_err(|e| ParseFromStreamError::IoError(e))?;
+    let stream =
+        get_input_stream_for_loading(stream, cancellable).map_err(ParseFromStreamError::IoError)?;
 
     state.parse_from_stream(&stream, cancellable)?;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]