Fix clippy: Remove unneeded reference

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2022-12-27 15:50:28 +01:00
parent 34932cb295
commit af63e75e5d
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ fn get_links(response: &Response, call_id: Uuid) -> Result<(Option<Url>, Option<
let link_header = link_header.to_str()?; let link_header = link_header.to_str()?;
trace!(link_header = link_header, call_id = as_debug!(call_id); "parsing link header"); trace!(link_header = link_header, call_id = as_debug!(call_id); "parsing link header");
let link_header = link_header.as_bytes(); let link_header = link_header.as_bytes();
let link_header: Link = parsing::from_raw_str(&link_header)?; let link_header: Link = parsing::from_raw_str(link_header)?;
for value in link_header.values() { for value in link_header.values() {
if let Some(relations) = value.rel() { if let Some(relations) = value.rel() {
if relations.contains(&RelationType::Next) { if relations.contains(&RelationType::Next) {