Skip to content

Commit

Permalink
EdnError::deserialize helper function now pub for convenience crates …
Browse files Browse the repository at this point in the history
…built on top of `edn-rs`.
  • Loading branch information
Grinkers committed Feb 23, 2024
1 parent 6c7e6e6 commit 0a2d384
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/edn/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ pub enum Code {
}

impl Error {
pub(crate) const fn deserialize(conv_type: &'static str) -> Self {
/// This is only for crates adding functionality to `edn-rs`, such as `edn-derive`.
#[doc(hidden)]
pub const fn deserialize(conv_type: &'static str) -> Self {
Self {
code: Code::Convert(conv_type),
line: None,
Expand Down

0 comments on commit 0a2d384

Please sign in to comment.