1
2
3
4
5
6
7
8
9
10
11
12
use std::fmt;
use thiserror::Error;

/// Just an error
#[derive(Error, Debug, Copy, Clone, Default, PartialEq)]
pub struct ArrTooSmall;

impl fmt::Display for ArrTooSmall {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "{self:?}")
    }
}