[librsvg: 24/51] Remove unneeded type parameter E on AttributeResultExt
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 24/51] Remove unneeded type parameter E on AttributeResultExt
- Date: Thu, 19 Dec 2019 01:50:02 +0000 (UTC)
commit 695e30d44e7456f0542d4489e87a2c01664fb283
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Dec 17 14:32:50 2019 -0600
Remove unneeded type parameter E on AttributeResultExt
rsvg_internals/src/error.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/error.rs b/rsvg_internals/src/error.rs
index 497398c2..5e558e5e 100644
--- a/rsvg_internals/src/error.rs
+++ b/rsvg_internals/src/error.rs
@@ -165,11 +165,11 @@ impl fmt::Display for AcquireError {
///
/// The call to `.attribute(attr)` converts the `Result` from `parse_foo()` into a full
/// `NodeError` with the provided `attr`.
-pub trait AttributeResultExt<O, E> {
+pub trait AttributeResultExt<O> {
fn attribute(self, attr: QualName) -> Result<O, NodeError>;
}
-impl<O, E: Into<ValueErrorKind>> AttributeResultExt<O, E> for Result<O, E> {
+impl<O, E: Into<ValueErrorKind>> AttributeResultExt<O> for Result<O, E> {
fn attribute(self, attr: QualName) -> Result<O, NodeError> {
self.map_err(|e| e.into())
.map_err(|err| NodeError { attr, err })
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]