mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user