diff --git a/crates/relayer/src/config.rs b/crates/relayer/src/config.rs index 9494a1cc1b..fa4725a6d2 100644 --- a/crates/relayer/src/config.rs +++ b/crates/relayer/src/config.rs @@ -106,7 +106,7 @@ impl PartialOrd for GasPrice { /// the parsing of other prices. pub fn parse_gas_prices(prices: String) -> Vec { prices - .split(|c| c == ',' || c == ';') + .split([',', ';']) .filter_map(|gp| GasPrice::from_str(gp).ok()) .collect() }