Skip to content

Commit

Permalink
EdnError::CustomError for convenience crates built on top of edn-rs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grinkers committed Feb 23, 2024
1 parent 6c7e6e6 commit 3965bc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/edn/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ pub struct Error {
#[derive(Debug, Eq, PartialEq)]
#[non_exhaustive]
pub enum Code {
/// Custom errors for external crates (eg. `edn-derive`). std only.
#[cfg(feature = "std")]
CustomError(std::string::String),

/// Parse errors
HashMapDuplicateKey,
InvalidChar,
Expand Down

0 comments on commit 3965bc3

Please sign in to comment.