Add type to debug output for Amount
Debug output usually includes the type (and we do so for `SignedAmount`). Add the type to the `Debug` output of `Amount`.
This commit is contained in:
parent
42e5043b33
commit
2b4a61739a
|
@ -285,7 +285,9 @@ impl default::Default for Amount {
|
|||
}
|
||||
|
||||
impl fmt::Debug for Amount {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{} SAT", self.to_sat()) }
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "Amount({} SAT)", self.to_sat())
|
||||
}
|
||||
}
|
||||
|
||||
// No one should depend on a binding contract for Display for this type.
|
||||
|
|
Loading…
Reference in New Issue