mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
switch from ToString to Display for ShortChannelId
This commit is contained in:
parent
5f664dac77
commit
eda6a4b44a
1 changed files with 3 additions and 3 deletions
|
@ -165,9 +165,9 @@ impl FromStr for ShortChannelId {
|
|||
))
|
||||
}
|
||||
}
|
||||
impl ToString for ShortChannelId {
|
||||
fn to_string(&self) -> String {
|
||||
format!("{}x{}x{}", self.block(), self.txindex(), self.outnum())
|
||||
impl Display for ShortChannelId {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "{}x{}x{}", self.block(), self.txindex(), self.outnum())
|
||||
}
|
||||
}
|
||||
impl ShortChannelId {
|
||||
|
|
Loading…
Add table
Reference in a new issue