miette icon indicating copy to clipboard operation
miette copied to clipboard

Feature Request: Make miette! macro handle related errors

Open RobertasJ opened this issue 6 months ago • 3 comments

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.

RobertasJ avatar Jul 30 '24 20:07 RobertasJ