Skip to content

Commit

Permalink
marked-yaml: Expose FromYamlError
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
  • Loading branch information
kinnison committed Apr 3, 2024
1 parent e7bb268 commit b6bc43d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion marked-yaml/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ pub mod spanned_serde;
#[cfg(feature = "serde")]
#[doc(inline)]
pub use spanned_serde::{
from_node, from_yaml, from_yaml_with_options, Error, FromNodeError, Spanned,
from_node, from_yaml, from_yaml_with_options, Error, FromNodeError, FromYamlError, Spanned,
};
2 changes: 2 additions & 0 deletions marked-yaml/src/spanned_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ impl fmt::Display for FromNodeError {
/// Errors which can occur when deserialising from YAML
#[derive(Debug)]
pub enum FromYamlError {
/// A problem was encountered when parsing YAML
ParseYaml(crate::LoadError),
/// A problem was encountered when deserializing from nodes
FromNode(FromNodeError),
}

Expand Down

0 comments on commit b6bc43d

Please sign in to comment.