mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-04-01 09:35:34 +00:00
handle Code::multiline_continue_from result
This commit is contained in:
parent
7f6c459065
commit
8c00d4bf89
6 changed files with 50 additions and 8 deletions
16
src/line/code/error.rs
Normal file
16
src/line/code/error.rs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue