[librsvg: 20/51] filters/input.rs: Don't create a NodeError directly
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 20/51] filters/input.rs: Don't create a NodeError directly
- Date: Thu, 19 Dec 2019 01:49:42 +0000 (UTC)
commit 85614c750252cbd3ac6e1cbf6ca3143f53c215e0
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Dec 17 10:59:48 2019 -0600
filters/input.rs: Don't create a NodeError directly
rsvg_internals/src/filters/input.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/filters/input.rs b/rsvg_internals/src/filters/input.rs
index 48f76bdf..3ffbd31e 100644
--- a/rsvg_internals/src/filters/input.rs
+++ b/rsvg_internals/src/filters/input.rs
@@ -1,6 +1,6 @@
use markup5ever::QualName;
-use crate::error::NodeError;
+use crate::error::*;
/// An enumeration of possible inputs for a filter primitive.
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
@@ -24,7 +24,7 @@ impl Input {
"FillPaint" => Ok(Input::FillPaint),
"StrokePaint" => Ok(Input::StrokePaint),
s if !s.is_empty() => Ok(Input::FilterOutput(s.to_string())),
- _ => Err(NodeError::parse_error(attr, "invalid value")),
+ _ => Err(ValueErrorKind::parse_error("invalid value")).attribute(attr),
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]