We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf05085 + 03dd62e commit bb1f22eCopy full SHA for bb1f22e
src/notifications/types.rs
@@ -86,6 +86,19 @@ impl From<btck_Warning> for Warning {
86
}
87
88
89
+impl std::fmt::Display for Warning {
90
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
91
+ match self {
92
+ Warning::UnknownNewRulesActivated => {
93
+ write!(f, "Unknown new rules activated")
94
+ }
95
+ Warning::LargeWorkInvalidChain => {
96
+ write!(f, "Large work invalid chain")
97
98
99
100
+}
101
+
102
/// Result of data structure validation.
103
///
104
/// Indicates whether a validated data structure (block, transaction, etc.)
0 commit comments