Skip to content

Commit b381282

Browse files
committed
chore: Implement Error for InlineError
1 parent 15a339d commit b381282

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Option to remove "style" tags. [#11](https://github.com/Stranger6667/css-inline/issues/11)
99
- `CSSInliner::compact()` constructor for producing smaller HTML output.
1010
- `CSSInliner.inline_to` that writes the output to a generic writer. [#24](https://github.com/Stranger6667/css-inline/issues/24)
11+
- Implement `Error` for `InlineError`.
1112

1213
### Changed
1314

src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Errors that may happen during inlining.
22
use cssparser::{BasicParseErrorKind, ParseError, ParseErrorKind};
3+
use std::error::Error;
34
use std::fmt::{Display, Formatter};
45
use std::{fmt, io};
56

@@ -18,6 +19,8 @@ impl From<io::Error> for InlineError {
1819
}
1920
}
2021

22+
impl Error for InlineError {}
23+
2124
impl Display for InlineError {
2225
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
2326
match self {

0 commit comments

Comments
 (0)