Switch from thiserror to displaydoc #860
Labels
C-meta
Component: Relating to ICU4X as a whole
S-small
Size: One afternoon (small bug fix or enhancement)
T-techdebt
Type: ICU4X code health and tech debt
Milestone
Part of #812
We currently use
thiserror
, which works like this:Unfortunately, thiserror isn't
no_std
, and while there's discussion for getting it there, it's been stalled for a while with some tricky concernsThe main thing we get out of
thiserror
isDisplay
impls. Thestd::error::Error
impl is largely unimportant, and in our case we can do a blank impl to proxy toDisplay
if we haveDisplay
impls.A crate that does this just for
Display
isdisplaydoc
. It's inspired bythiserror
, and works like this:We should switch.
The text was updated successfully, but these errors were encountered: