avoid long display of TxLogEntryType (#1894)

This commit is contained in:
Gary Yu 2018-10-31 18:31:24 +08:00 committed by Antioch Peverell
parent bc0128ab88
commit a8bf2eb126

View file

@ -555,11 +555,11 @@ pub enum TxLogEntryType {
impl fmt::Display for TxLogEntryType { impl fmt::Display for TxLogEntryType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self { match *self {
TxLogEntryType::ConfirmedCoinbase => write!(f, "Confirmed Coinbase"), TxLogEntryType::ConfirmedCoinbase => write!(f, "Confirmed \nCoinbase"),
TxLogEntryType::TxReceived => write!(f, "Received Tx"), TxLogEntryType::TxReceived => write!(f, "Received Tx"),
TxLogEntryType::TxSent => write!(f, "Sent Tx"), TxLogEntryType::TxSent => write!(f, "Sent Tx"),
TxLogEntryType::TxReceivedCancelled => write!(f, "Received Tx - Cancelled"), TxLogEntryType::TxReceivedCancelled => write!(f, "Received Tx\n- Cancelled"),
TxLogEntryType::TxSentCancelled => write!(f, "Send Tx - Cancelled"), TxLogEntryType::TxSentCancelled => write!(f, "Send Tx\n- Cancelled"),
} }
} }
} }