refactor(trim_right_matches -> trim_end_matches) (#10159)
This commit is contained in:
parent
eea3de00c1
commit
38af7f35fc
@ -57,8 +57,7 @@ pub fn format_ether(i: U256) -> String {
|
||||
} else {
|
||||
string.insert(idx as usize, '.');
|
||||
}
|
||||
String::from(string.trim_right_matches('0')
|
||||
.trim_right_matches('.'))
|
||||
String::from(string.trim_end_matches('0').trim_end_matches('.'))
|
||||
}
|
||||
|
||||
impl fmt::Display for TransactionRequest {
|
||||
|
Loading…
Reference in New Issue
Block a user