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
Hmm. It turns out we rely on the current behavior in Report. Instead of switching the hard-coded lifetimes from + 'a to + 'static, we can introduce a second lifetime.
Previously it unconditionally returned &'a (dyn Error + 'a) which
was never downcastable. The additional lifetime can be `'static`,
resulting in `&'a (dyn Error + 'static)`, which may be downcast.
Closes#370
It should be
&'a dyn Error + 'static
. Doing this means that the public constructor needs to be modified, making it technically a breaking change.The text was updated successfully, but these errors were encountered: