Skip to content

Commit c382a0f

Browse files
author
Jakub Bukaj
committed
Update to newest rust-url
1 parent c601ad0 commit c382a0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cred.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl CredentialHelper {
155155
match parsed_url {
156156
Ok(url) => {
157157
match url.host() {
158-
Some(&url::Domain(ref s)) => ret.host = Some(s.clone()),
158+
Some(&url::Host::Domain(ref s)) => ret.host = Some(s.clone()),
159159
_ => {}
160160
}
161161
ret.protocol = Some(url.scheme)
@@ -166,8 +166,8 @@ impl CredentialHelper {
166166

167167
fn mapper(s: &str) -> url::SchemeType {
168168
match s {
169-
"git" => url::RelativeScheme(9418),
170-
"ssh" => url::RelativeScheme(22),
169+
"git" => url::SchemeType::Relative(9418),
170+
"ssh" => url::SchemeType::Relative(22),
171171
s => url::whatwg_scheme_type_mapper(s),
172172
}
173173
}

0 commit comments

Comments
 (0)