chunkedge_nbt/
serde.rs

1#![allow(unused_imports)]
2use std::fmt;
3
4use ser::*;
5
6use crate::Error;
7
8pub mod de;
9pub mod ser;
10#[cfg(test)]
11mod tests;
12
13impl serde::de::Error for Error {
14    fn custom<T>(msg: T) -> Self
15    where
16        T: fmt::Display,
17    {
18        Self::new_owned(format!("{msg}"))
19    }
20}
21
22impl serde::ser::Error for Error {
23    fn custom<T>(msg: T) -> Self
24    where
25        T: fmt::Display,
26    {
27        Self::new_owned(format!("{msg}"))
28    }
29}