[librsvg: 17/51] component_transfer.rs: Don't create a NodeError directly
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 17/51] component_transfer.rs: Don't create a NodeError directly
- Date: Thu, 19 Dec 2019 01:49:26 +0000 (UTC)
commit 8d9fa4faf583aa16e70e1e0715475d57eff38b57
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Dec 17 10:57:12 2019 -0600
component_transfer.rs: Don't create a NodeError directly
rsvg_internals/src/filters/component_transfer.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/filters/component_transfer.rs
b/rsvg_internals/src/filters/component_transfer.rs
index 300e82b1..f6f39f7a 100644
--- a/rsvg_internals/src/filters/component_transfer.rs
+++ b/rsvg_internals/src/filters/component_transfer.rs
@@ -71,7 +71,7 @@ impl FunctionType {
"discrete" => Ok(FunctionType::Discrete),
"linear" => Ok(FunctionType::Linear),
"gamma" => Ok(FunctionType::Gamma),
- _ => 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]