[librsvg/librsvg-2.44] FilterContext::into_output(): propagate errors more simply
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.44] FilterContext::into_output(): propagate errors more simply
- Date: Mon, 24 Sep 2018 00:18:47 +0000 (UTC)
commit a60c95878741cda23d14837036cf99b3df55b14a
Author: Federico Mena Quintero <federico gnome org>
Date: Sun Sep 23 19:01:40 2018 -0500
FilterContext::into_output(): propagate errors more simply
rsvg_internals/src/filters/context.rs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/rsvg_internals/src/filters/context.rs b/rsvg_internals/src/filters/context.rs
index b75a4a1e..100e0786 100644
--- a/rsvg_internals/src/filters/context.rs
+++ b/rsvg_internals/src/filters/context.rs
@@ -390,10 +390,9 @@ impl FilterContext {
cairo::Format::ARgb32,
self.source_surface.width(),
self.source_surface.height(),
- ).map_err(FilterError::CairoError)?;
+ )?;
- SharedImageSurface::new(empty_surface, SurfaceType::AlphaOnly)
- .map_err(FilterError::CairoError)
+ Ok(SharedImageSurface::new(empty_surface, SurfaceType::AlphaOnly)?)
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]