1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

core/error: require UCustomError to be Send

For multi-threaded programs like sort it is necessary to be able to send
errors between threads.
This commit is contained in:
Michael Debertol 2021-08-01 16:50:33 +02:00
parent 450a487d76
commit e8eb15f05e

View file

@ -251,7 +251,7 @@ impl Display for UError {
///
/// A crate like [`quick_error`](https://crates.io/crates/quick-error) might
/// also be used, but will still require an `impl` for the `code` method.
pub trait UCustomError: Error {
pub trait UCustomError: Error + Send {
/// Error code of a custom error.
///
/// Set a return value for each variant of an enum-type to associate an