From 59879585ffaeca3a61b5974a30d3ac27fed3cd15 Mon Sep 17 00:00:00 2001 From: VirtuallyThere Date: Sat, 10 Sep 2022 16:04:14 +0200 Subject: [PATCH] Formatting ... I'm learning :) --- src/subcommand/list.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/subcommand/list.rs b/src/subcommand/list.rs index 1761ae727b..afd3a4ba75 100644 --- a/src/subcommand/list.rs +++ b/src/subcommand/list.rs @@ -2,7 +2,7 @@ use super::*; #[derive(Debug, Parser)] pub(crate) struct List { - #[clap(long,short,help = "Use extended output format")] + #[clap(long, short, help = "Use extended output format")] longform: bool, outpoints: Vec, } @@ -19,12 +19,17 @@ impl List { println!("{} {}", outpoint, oldest.0); } for (start, end) in ranges { - if self.longform { println!(" [{start},{end})<{}>", end-start) } - else { println!("[{start},{end})") } + if self.longform { + println!(" [{start},{end})<{}>", end - start) + } else { + println!("[{start},{end})") + } } } - Some(crate::index::List::Spent(txid)) => return Err(anyhow!("Output {} spent in transaction {txid}", outpoint)), - None => return Err(anyhow!("Output {} not found", outpoint)) + Some(crate::index::List::Spent(txid)) => { + return Err(anyhow!("Output {} spent in transaction {txid}", outpoint)) + } + None => return Err(anyhow!("Output {} not found", outpoint)), } } Ok(())