From f3823b023aef9b0a8ec4da887c3c38863ff93430 Mon Sep 17 00:00:00 2001 From: materus Date: Tue, 19 Mar 2024 12:33:34 +0100 Subject: [PATCH] Add text when converting to same currency --- src/exchange.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exchange.rs b/src/exchange.rs index 165cbd6..0814240 100644 --- a/src/exchange.rs +++ b/src/exchange.rs @@ -56,7 +56,7 @@ pub async fn convert_value(code_from: &String, code_to: &String, value: &String) let result = ex.convert(from_money).expect("Error while conversion"); println!("Equals: {}", result.to_string()) } else { - println!("{}", from_money.to_string()) + println!("Equals: {}", from_money.to_string()) } println!("Exchange rate: {}", text_rate); }