thiserror/impl
Michal Nazarewicz 97eeb45b8b Replace DisplayAsDisplay and PathAsDisplay with AsDisplay trait
Rather than having separate traits implementing as_display method,
replace DisplayAsDisplay and PathAsDisplay traits with a AsDisplay
trait.  The difference between those two traits is in the result
returned by the as_display method.  With AsDisplay trait this is
captured by an associated type.

The main motivation for the change is making it simpler to support
no_std builds in the future.  Previously, PathAsDisplay would have to
be handled specially in such builds on the side of macro expansion.
Now, thiserror-impl doesn’t need to be aware of any complications
around AsDisplay since they are all contained in thiserror crate.
2023-09-01 04:59:43 +02:00
..
src Replace DisplayAsDisplay and PathAsDisplay with AsDisplay trait 2023-09-01 04:59:43 +02:00
Cargo.toml Release 1.0.47 2023-08-16 19:57:26 -07:00
LICENSE-APACHE Link license files into impl subcrate 2020-02-14 11:11:30 -08:00
LICENSE-MIT Link license files into impl subcrate 2020-02-14 11:11:30 -08:00