fix: table header capitilzation

This commit is contained in:
binarybaron 2024-07-25 15:34:44 +02:00
parent ed314c4c09
commit c9d3f9cc40
No known key found for this signature in database
GPG Key ID: 99B75D3E1476A26E

View File

@ -230,17 +230,17 @@ async fn main() -> Result<()> {
}
Command::History { only_unfinished } => {
let db = open_db(config.data.dir.join("sqlite"), AccessMode::ReadOnly).await?;
let mut table = Table::new();
let mut table: Table = Table::new();
table.set_header(vec![
"SWAP ID",
"START DATETIME",
"CURRENT STATE",
"BTC AMOUNT",
"XMR AMOUNT",
"EXCHANGE RATE",
"TRADING PARTNER PEER ID",
"COMPLETED",
"Swap ID",
"Start Date",
"State",
"BTC Amount",
"XMR Amount",
"Exchange Rate",
"Trading Partner Peer ID",
"Completed",
]);
let all_swaps = db.all().await?;