Implemented From trait for EscapeError to Error
@@ -52,6 +52,14 @@ impl From<::std::str::Utf8Error> for Error {
}
}
+impl From<::escape::EscapeError> for Error {
+ /// Creates a new `Error::EscapeError` from the given error
+ #[inline]
+ fn from(error: ::escape::EscapeError) -> Error {
+ Error::EscapeError(error)
+ }
+}
+
/// A specialized `Result` type where the error is hard-wired to [`Error`].
///
/// [`Error`]: enum.Error.html
