aboutsummaryrefslogtreecommitdiff
path: root/src/libs/intertrait/cast/error.rs
blob: e4211b1263da925c54f811e02f6f447989c0ebe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::fmt;
use std::fmt::{Display, Formatter};

use error_stack::Context;

#[derive(Debug)]
pub struct CastError;

impl Display for CastError
{
    fn fmt(&self, fmt: &mut Formatter<'_>) -> fmt::Result
    {
        fmt.write_str("Failed to cast between traits")
    }
}

impl Context for CastError {}