You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
Right now, to use related errors in the miette! macro, you have to create a custom struct with a #[related] field. This can be a bit cumbersome and adds extra boilerplate.
Solution
It would be great if the related field in the miette! macro could accept any iterator, like a Vec or any type implementing IntoIterator.
The text was updated successfully, but these errors were encountered:
It seems like the reason that these havent been implemented is because this would either require the dyn objects it holds to be clone or it would have to remove its clone derive, this includes over traits like partialeq and eq. as for the related errors part, it needs lifetimes which will also probably break some stuff.
Problem
Right now, to use related errors in the miette! macro, you have to create a custom struct with a #[related] field. This can be a bit cumbersome and adds extra boilerplate.
Solution
It would be great if the related field in the miette! macro could accept any iterator, like a Vec or any type implementing IntoIterator.
The text was updated successfully, but these errors were encountered: