Is there a reason that Report
doesn't implement Error
and Diagnostic
?
#366
Labels
question
Further information is requested
I've maybe not done enough thinking on this yet, but it would seem that https://docs.rs/miette/latest/miette/struct.Error.html can be converted to all sorts of
Error
orDiagnostic
trait objects, but doesn't implement either of those traits itself?I was wondering if that was done intentionally, or if that might be another helpful PR?
Perhaps in addition to that, is there a reason there isn't a blanket impl for
Box<T>
whereT: Diagnostic
?I've got this kinda hacky code, and I'll be adding an impl to manually deal with
Report
, but ideally I wouldn't need this intermediate trait?My manual impl for
Report
also isn't working, I think because thatBox<T>
blanket impl is missing... This code:returns this error, once I try to pass it to
.report_error()
:Let me know if I'm crazy, or if adding those impls would help ergonomics!
The text was updated successfully, but these errors were encountered: