From e8eb15f05e5c5ba4de5989f5eb0a9eb390102738 Mon Sep 17 00:00:00 2001 From: Michael Debertol Date: Sun, 1 Aug 2021 16:50:33 +0200 Subject: [PATCH] core/error: require UCustomError to be Send For multi-threaded programs like sort it is necessary to be able to send errors between threads. --- src/uucore/src/lib/mods/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uucore/src/lib/mods/error.rs b/src/uucore/src/lib/mods/error.rs index c64e7df66..d82da9feb 100644 --- a/src/uucore/src/lib/mods/error.rs +++ b/src/uucore/src/lib/mods/error.rs @@ -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