Skip to content

Commit

Permalink
Update src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Levick <[email protected]>
Signed-off-by: Danielle <[email protected]>
  • Loading branch information
endocrimes and rylev authored May 16, 2024
1 parent 693aa2e commit 3b3e528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl FromStr for ContentEncoding {
let mut parts = s.split(';');
let encoding = parts.next().unwrap().trim();
let encoding = SupportedEncoding::from_str(v).context("failed to parse encoding type")?;
let Some(v) = parts
let Some(weight) = parts
.next()
.map(|s| s.trim())
.and_then(|s| s.strip_prefix("q="))
Expand Down

0 comments on commit 3b3e528

Please sign in to comment.