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 21:27:59 +02:00
parent 450a487d76
commit e8eb15f05e
+1 -1
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