Skip to content

Commit

Permalink
extra new line char removed (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
surinder83singh authored Aug 7, 2024
1 parent f701c66 commit 37f11d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wallet/core/src/account/descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,12 @@ impl std::fmt::Display for AccountDescriptorValue {
AccountDescriptorValue::Bool(value) => write!(f, "{}", value),
AccountDescriptorValue::AddressDerivationMeta(value) => write!(f, "{}", value),
AccountDescriptorValue::XPubKeys(value) => {
let mut s = String::new();
let mut s = vec![];
for xpub in value.iter() {
s.push_str(&format!("{}\n", xpub));
//s.push(xpub.to_string(None));
s.push(format!("{}", xpub));
}
write!(f, "{}", s)
write!(f, "{}", s.join("\n"))
}
AccountDescriptorValue::Json(value) => write!(f, "{}", value),
}
Expand Down

0 comments on commit 37f11d0

Please sign in to comment.