From 0a2d384526aa523a79d43e2b4598601a3936d676 Mon Sep 17 00:00:00 2001 From: Kevin Nakamura Date: Sat, 24 Feb 2024 04:07:43 +0900 Subject: [PATCH] EdnError::deserialize helper function now pub for convenience crates built on top of `edn-rs`. --- src/edn/error.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/edn/error.rs b/src/edn/error.rs index 2ca6028..1098b03 100644 --- a/src/edn/error.rs +++ b/src/edn/error.rs @@ -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,