Skip to content

Commit 064187e

Browse files
authored
Merge pull request #19 from lightningdevkit/mnemonic-to-str
2 parents 4d0dfaa + 701c98d commit 064187e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

orange-sdk/src/ffi/ldk_node.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ impl Mnemonic {
3737
Err(_) => Err(ConfigError::InvalidMnemonic),
3838
}
3939
}
40+
}
4041

41-
pub fn to_string(&self) -> String {
42-
self.0.to_string()
42+
impl std::fmt::Display for Mnemonic {
43+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
44+
write!(f, "{}", self.0)
4345
}
4446
}
4547

0 commit comments

Comments
 (0)