Skip to content

Commit

Permalink
Remove unnecessary reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Barugon committed May 6, 2023
1 parent fca4950 commit e15b44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ fn get_stats_text(line: &str, ts: i64, file_date: NaiveDate) -> Option<&str> {
fn get_adv_xp(line: &str) -> Option<i64> {
let text = get_log_text(line);
if text.starts_with(ADV_EXP_KEY) {
let text = text[ADV_EXP_KEY.len()..].replace(&[',', '.'], Default::default());
let text = text[ADV_EXP_KEY.len()..].replace([',', '.'], Default::default());
return text.parse().ok();
}

Expand Down

0 comments on commit e15b44f

Please sign in to comment.