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 22ae4d2 + 2c99aa0 commit eaad8f5Copy full SHA for eaad8f5
src/types.rs
@@ -5,6 +5,7 @@
5
// http://opensource.org/licenses/MIT>, at your option. You may not use this file except in
6
// accordance with one or both of these licenses.
7
8
+use std::fmt;
9
use std::sync::{Arc, Mutex};
10
11
use bitcoin::secp256k1::PublicKey;
@@ -192,6 +193,12 @@ impl Readable for UserChannelId {
192
193
}
194
195
196
+impl fmt::Display for UserChannelId {
197
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
198
+ write!(f, "UserChannelId({})", self.0)
199
+ }
200
+}
201
+
202
/// Details of a channel as returned by [`Node::list_channels`].
203
///
204
/// [`Node::list_channels`]: crate::Node::list_channels
0 commit comments