File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 8
8
- Option to remove "style" tags. [ #11 ] ( https://github.com/Stranger6667/css-inline/issues/11 )
9
9
- ` CSSInliner::compact() ` constructor for producing smaller HTML output.
10
10
- ` 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 ` .
11
12
12
13
### Changed
13
14
Original file line number Diff line number Diff line change 1
1
//! Errors that may happen during inlining.
2
2
use cssparser:: { BasicParseErrorKind , ParseError , ParseErrorKind } ;
3
+ use std:: error:: Error ;
3
4
use std:: fmt:: { Display , Formatter } ;
4
5
use std:: { fmt, io} ;
5
6
@@ -18,6 +19,8 @@ impl From<io::Error> for InlineError {
18
19
}
19
20
}
20
21
22
+ impl Error for InlineError { }
23
+
21
24
impl Display for InlineError {
22
25
fn fmt ( & self , f : & mut Formatter ) -> fmt:: Result {
23
26
match self {
You can’t perform that action at this time.
0 commit comments