Skip to content

Commit

Permalink
Replace str::trim_start with str::trim_left
Browse files Browse the repository at this point in the history
std::trim_start was deprecated in Rust 1.33
  • Loading branch information
oherrala committed Aug 5, 2019
1 parent 01faff2 commit 3a5cafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/priority_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl<'a> Iterator for PriorityHeaderIter<'a> {
let mut value = 1.0f32;

for p in params {
let trimmed_p = p.trim_left();
let trimmed_p = p.trim_start();
if trimmed_p.starts_with("q=") {
if let Ok(val) = FromStr::from_str(&trimmed_p[2..].trim()) {
value = val; break;
Expand Down

0 comments on commit 3a5cafa

Please sign in to comment.