Skip to content

Commit

Permalink
Fix cargo fmt error
Browse files Browse the repository at this point in the history
  • Loading branch information
jeckersb authored and vrutkovs committed Jun 2, 2023
1 parent abb58c1 commit 9bb8046
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/v2/tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ fn parse_link(hdr: Option<&header::HeaderValue>) -> Option<String> {
// Query parameters for next page URL.
let uri = sval.trim_end_matches(">; rel=\"next\"");
let query: Vec<&str> = uri.splitn(2, "?").collect();
match query.get(1) { //use the entire query param string since some registries have different ways of pagination
Some(v) if !v.is_empty() => Some(v.to_string()),
match query.get(1) {
//use the entire query param string since some registries have different ways of pagination
Some(v) if !v.is_empty() => Some(v.to_string()),
_ => None,
}
}

0 comments on commit 9bb8046

Please sign in to comment.