Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
yescallop committed Oct 12, 2024
1 parent bfa65de commit 05d4ad6
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ pub(crate) fn resolve(
let (t_scheme, t_authority, t_path, t_query, t_fragment);
let mut buf = String::new();

let (r_scheme, r_authority, r_path, r_query, r_fragment) = (
r.scheme_opt(),
r.authority(),
r.path(),
r.query(),
r.fragment(),
);
let r_scheme = r.scheme_opt();
let r_authority = r.authority();
let r_path = r.path();
let r_query = r.query();
let r_fragment = r.fragment();

if let Some(r_scheme) = r_scheme {
t_scheme = r_scheme;
Expand Down

0 comments on commit 05d4ad6

Please sign in to comment.