mas-i18n: box the sprintf parser error variant

This commit is contained in:
Quentin Gliech
2024-05-02 10:46:13 +02:00
parent 446bb565a8
commit 715423c11f

View File

@@ -82,7 +82,13 @@ pub(crate) use sprintf;
#[error(transparent)]
enum Error {
Format(#[from] self::formatter::FormatError),
Parse(#[from] self::parser::Error),
Parse(Box<self::parser::Error>),
}
impl From<self::parser::Error> for Error {
fn from(err: self::parser::Error) -> Self {
Self::Parse(Box::new(err))
}
}
#[cfg(test)]