stepper icon indicating copy to clipboard operation
stepper copied to clipboard

Consider constraining error types to a core::fmt::Debug

Open shyndman opened this issue 2 years ago • 1 comments

I'm currently prototyping, and I'm rarely interested in the specifics of an error presented by the library.

Would there be any interesting in constraining the traits' associated Error types to core::fmt::Debug so they can be printed and forgotten, or passed along to anyhow! or whatever?

This would be a breaking change, obviously, but I'm curious whether you think this would be valuable? Or is flexibility in the interface more important to you?

shyndman avatar Nov 28 '22 20:11 shyndman

I think that's reasonable. I can't think of a scenario where having your error types be Debug would not be acceptable.

hannobraun avatar Nov 29 '22 07:11 hannobraun