File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
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.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use crate::Box;
18
18
pub enum ParseError {
19
19
/// Invalid absolute locktime
20
20
AbsoluteLockTime ( AbsLockTimeError ) ,
21
- /// Invalid absolute locktime
21
+ /// Invalid relative locktime
22
22
RelativeLockTime ( RelLockTimeError ) ,
23
23
/// Failed to parse a public key or hash.
24
24
///
You can’t perform that action at this time.
0 commit comments