Skip to content

Commit

Permalink
replace str to char
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed May 7, 2023
1 parent 9983102 commit 9f827b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eosio.token/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ use substreams_database_change::change::AsString;
// all EOS symcode transfers to these two accounts
pub fn create_filters(params: &str, key: &str) -> HashSet<String> {
let mut filter = HashSet::new();
for part in params.split("&").collect::<Vec<&str>>() {
let kv = part.split("=").collect::<Vec<&str>>();
for part in params.split('&').collect::<Vec<&str>>() {
let kv = part.split('=').collect::<Vec<&str>>();
if ( kv.len() != 2 ) || ( kv[0] != key ) {
continue;
}
for item in kv[1].split(",").collect::<Vec<&str>>() {
for item in kv[1].split(',').collect::<Vec<&str>>() {
filter.insert(item.as_string());
}
}
Expand Down

0 comments on commit 9f827b5

Please sign in to comment.