File tree 1 file changed +1
-11
lines changed
lightning-rapid-gossip-sync/src 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,6 @@ extern crate alloc;
72
72
use std:: fs:: File ;
73
73
use core:: ops:: Deref ;
74
74
use core:: sync:: atomic:: { AtomicBool , Ordering } ;
75
- use core:: fmt:: Debug ;
76
- use core:: fmt:: Formatter ;
77
75
78
76
use lightning:: io;
79
77
use lightning:: ln:: msgs:: { DecodeError , LightningError } ;
@@ -84,6 +82,7 @@ use lightning::util::logger::Logger;
84
82
mod processing;
85
83
86
84
/// All-encompassing standard error type that processing can return
85
+ #[ derive( Debug ) ]
87
86
pub enum GraphSyncError {
88
87
/// Error trying to read the update data, typically due to an erroneous data length indication
89
88
/// that is greater than the actual amount of data provided
@@ -111,15 +110,6 @@ impl From<LightningError> for GraphSyncError {
111
110
}
112
111
}
113
112
114
- impl Debug for GraphSyncError {
115
- fn fmt ( & self , f : & mut Formatter < ' _ > ) -> core:: fmt:: Result {
116
- match self {
117
- GraphSyncError :: DecodeError ( e) => f. write_fmt ( format_args ! ( "DecodeError: {:?}" , e) ) ,
118
- GraphSyncError :: LightningError ( e) => f. write_fmt ( format_args ! ( "LightningError: {:?}" , e) )
119
- }
120
- }
121
- }
122
-
123
113
/// The main Rapid Gossip Sync object.
124
114
///
125
115
/// See [crate-level documentation] for usage.
You can’t perform that action at this time.
0 commit comments