Closed wfly1998 closed 4 months ago
The way Rust's standard library currently is, the former (Into<...>
) is more flexible. That's because Box<dyn Error>
does not implement Error
, for "reasons".
So, this change makes it so Error = Box<dyn Error>
no longer works.
The way Rust's standard library currently is, the former (
Into<...>
) is more flexible. That's becauseBox<dyn Error>
does not implementError
, for "reasons".So, this change makes it so
Error = Box<dyn Error>
no longer works.
Got it, thanks for your answer.
All types with
Error + Send + Sync
can be boxed intoBox<dyn Error + Send + Sync>
, but usingError ...
directly is more flexible and less restrictive for the user.