use crate::__private::error::{Error, Request}; #[doc(hidden)] pub trait ThiserrorProvide: Sealed { fn thiserror_provide<'a>(&'a self, request: &mut Request<'a>); } impl ThiserrorProvide for T where T: Error + ?Sized, { #[inline] fn thiserror_provide<'a>(&'a self, request: &mut Request<'a>) { self.provide(request); } } #[doc(hidden)] pub trait Sealed {} impl Sealed for T {}