diff --git a/trixy-types/src/error/mod.rs b/trixy-types/src/error/mod.rs index 7d739ed..328eabd 100644 --- a/trixy-types/src/error/mod.rs +++ b/trixy-types/src/error/mod.rs @@ -19,7 +19,7 @@ * If not, see . */ -use std::ffi::c_char; +use std::{convert::Infallible, ffi::c_char}; use thiserror::Error; @@ -43,6 +43,6 @@ pub enum TypeConversionError { #[error("The returned Result was an error: {original_message}")] ResultWasErr { original_message: String }, - #[error("This funciton is not admissable")] - NotAdmissable, + #[error("This conversion was infallible, and will thus never fail")] + Infallible(#[from] Infallible), }