File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,11 @@ use core::{fmt, hash};
17
17
18
18
use crate :: MiniscriptKey ;
19
19
20
- /// Auxiliary trait indicating that a type implements both `Debug` and `Display`.
21
- pub trait StaticDebugAndDisplay : fmt:: Debug + fmt:: Display + ' static { }
20
+ /// Auxiliary trait indicating that a type implements both `Debug`, `Display`, `Send` and `Sync`.
21
+ // NOTE: `Send` / `Sync` is required to maintain compatibility with downstream error handling libraries.
22
+ pub trait StaticDebugAndDisplay : fmt:: Debug + fmt:: Display + Send + Sync + ' static { }
22
23
23
- impl < T : fmt:: Debug + fmt:: Display + ' static > StaticDebugAndDisplay for T { }
24
+ impl < T : fmt:: Debug + fmt:: Display + Send + Sync + ' static > StaticDebugAndDisplay for T { }
24
25
25
26
/// Blanket trait describing a key where all associated types implement `FromStr`,
26
27
/// and all `FromStr` errors can be displayed.
You can’t perform that action at this time.
0 commit comments