mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +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:
parent
450a487d76
commit
e8eb15f05e
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ impl Display for UError {
|
||||||
///
|
///
|
||||||
/// A crate like [`quick_error`](https://crates.io/crates/quick-error) might
|
/// 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.
|
/// 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.
|
/// Error code of a custom error.
|
||||||
///
|
///
|
||||||
/// Set a return value for each variant of an enum-type to associate an
|
/// Set a return value for each variant of an enum-type to associate an
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue