summaryrefslogtreecommitdiff
path: root/src/std.rs
blob: 4f5ed7b5bb86deb63f3fb817757a6678a693da3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use crate::Error;
use std::{error, fmt};

impl<E: fmt::Debug> error::Error for Error<E> {}

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