refactor(trim_right_matches -> trim_end_matches) (#10159)

This commit is contained in:
Niklas Adolfsson 2019-01-10 13:12:14 +01:00 committed by Afri Schoedon
parent eea3de00c1
commit 38af7f35fc

View File

@ -57,8 +57,7 @@ pub fn format_ether(i: U256) -> String {
} else { } else {
string.insert(idx as usize, '.'); string.insert(idx as usize, '.');
} }
String::from(string.trim_right_matches('0') String::from(string.trim_end_matches('0').trim_end_matches('.'))
.trim_right_matches('.'))
} }
impl fmt::Display for TransactionRequest { impl fmt::Display for TransactionRequest {