From 7b7e8c0d3f92b4591c59629040f56bc8d55cd3f6 Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Fri, 21 Sep 2018 21:48:46 -0600 Subject: [PATCH] Clippy --- src/wallet.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wallet.rs b/src/wallet.rs index 7e469f9a86..9ce0cb4539 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -143,7 +143,7 @@ pub fn parse_command( }; let timestamp = if pay_matches.is_present("timestamp") { // Parse input for serde_json - let date_string = if !pay_matches.value_of("timestamp").unwrap().contains("Z") { + let date_string = if !pay_matches.value_of("timestamp").unwrap().contains('Z') { format!("\"{}Z\"", pay_matches.value_of("timestamp").unwrap()) } else { format!("\"{}\"", pay_matches.value_of("timestamp").unwrap()) @@ -229,7 +229,7 @@ pub fn parse_command( let date_string = if !timestamp_matches .value_of("datetime") .unwrap() - .contains("Z") + .contains('Z') { format!("\"{}Z\"", timestamp_matches.value_of("datetime").unwrap()) } else { @@ -340,7 +340,7 @@ pub fn process_command(config: &WalletConfig) -> Result { @@ -392,7 +392,7 @@ pub fn process_command(config: &WalletConfig) -> Result Result Result