Skip to content

Commit e4dbb43

Browse files
authored
Implement std::error::Error for InvalidBase64 (#856)
1 parent b33514a commit e4dbb43

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

data-url/src/forgiving_base64.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ impl fmt::Display for InvalidBase64 {
2121
}
2222
}
2323

24+
#[cfg(feature = "std")]
25+
impl std::error::Error for InvalidBase64 {}
26+
2427
#[derive(Debug)]
2528
enum InvalidBase64Details {
2629
UnexpectedSymbol(u8),

0 commit comments

Comments
 (0)