mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-03-31 17:15:33 +00:00
16 lines
347 B
Rust
16 lines
347 B
Rust
use std::fmt::{Display, Formatter, Result};
|
|
|
|
#[derive(Debug)]
|
|
pub enum Error {
|
|
Multiline(crate::line::code::multiline::Error),
|
|
}
|
|
|
|
impl Display for Error {
|
|
fn fmt(&self, f: &mut Formatter) -> Result {
|
|
match self {
|
|
Self::Multiline(e) => {
|
|
write!(f, "Multiline error: {e}")
|
|
}
|
|
}
|
|
}
|
|
}
|