Skip to content

Commit

Permalink
Implement std::error::Error for InvalidBase64 (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato authored Jul 14, 2023
1 parent b33514a commit e4dbb43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data-url/src/forgiving_base64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ impl fmt::Display for InvalidBase64 {
}
}

#[cfg(feature = "std")]
impl std::error::Error for InvalidBase64 {}

#[derive(Debug)]
enum InvalidBase64Details {
UnexpectedSymbol(u8),
Expand Down

0 comments on commit e4dbb43

Please sign in to comment.