File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 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};
1717
1818use crate :: MiniscriptKey ;
1919
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 { }
2223
23- impl < T : fmt:: Debug + fmt:: Display + ' static > StaticDebugAndDisplay for T { }
24+ impl < T : fmt:: Debug + fmt:: Display + Send + Sync + ' static > StaticDebugAndDisplay for T { }
2425
2526/// Blanket trait describing a key where all associated types implement `FromStr`,
2627/// and all `FromStr` errors can be displayed.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use crate::Box;
1818pub enum ParseError {
1919 /// Invalid absolute locktime
2020 AbsoluteLockTime ( AbsLockTimeError ) ,
21- /// Invalid absolute locktime
21+ /// Invalid relative locktime
2222 RelativeLockTime ( RelLockTimeError ) ,
2323 /// Failed to parse a public key or hash.
2424 ///
You can’t perform that action at this time.
0 commit comments