Skip to main content

ephemeris_documents/error/
line_ending.rs

1//! Errors from line ending resolution.
2
3/// Error returned while resolving a document's line ending.
4#[derive(Debug, Clone, Copy, thiserror::Error)]
5pub enum LineEndingError {
6    /// A document mixes CRLF and LF line endings.
7    #[error("document mixes line endings, which cannot be safely preserved")]
8    Mixed,
9    /// A document has a carriage return that is not followed by a line feed.
10    #[error("document has a carriage return that is not part of a CRLF line ending")]
11    BareCarriageReturn,
12}