Add text when converting to same currency

This commit is contained in:
Mateusz Słodkowicz 2024-03-19 12:33:34 +01:00
parent edc736d144
commit f3823b023a
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
1 changed files with 1 additions and 1 deletions

View File

@ -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"); let result = ex.convert(from_money).expect("Error while conversion");
println!("Equals: {}", result.to_string()) println!("Equals: {}", result.to_string())
} else { } else {
println!("{}", from_money.to_string()) println!("Equals: {}", from_money.to_string())
} }
println!("Exchange rate: {}", text_rate); println!("Exchange rate: {}", text_rate);
} }