teo_result/conversion/
infallible.rs

1
2
3
4
5
6
7
8
use std::convert::Infallible;
use crate::Error;

impl From<Infallible> for Error {
    fn from(value: Infallible) -> Self {
        Self::new(format!("{}", value))
    }
}