diff --git a/src/wallet.rs b/src/wallet.rs index 7e469f9a8..9ce0cb453 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