[librsvg: 26/43] xml: cleanup map_err
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 26/43] xml: cleanup map_err
- Date: Tue, 15 Oct 2019 00:07:40 +0000 (UTC)
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]