Skip to content

Commit c021ba9

Browse files
committed
Fix Url::into_string deprecation warning
`url::Url::into_string` is deprecated. The `Into<String>` implementation is now used. Signed-off-by: Paul Mabileau <paulmabileau@hotmail.fr>
1 parent 5c45513 commit c021ba9

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

crates/cargo-test-support/src/registry.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,7 @@ impl RegistryBuilder {
178178
}
179179

180180
if self.replace_crates_io {
181-
init_registry(
182-
registry_path(),
183-
dl_url().into_string(),
184-
api_url(),
185-
api_path(),
186-
);
181+
init_registry(registry_path(), dl_url().into(), api_url(), api_path());
187182
}
188183

189184
if self.alternative {

crates/mdman/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fn join_url<'a>(base: Option<&Url>, dest: CowStr<'a>) -> CowStr<'a> {
9696
let joined = base_url.join(&dest).unwrap_or_else(|e| {
9797
panic!("failed to join URL `{}` to `{}`: {}", dest, base_url, e)
9898
});
99-
joined.into_string().into()
99+
String::from(joined).into()
100100
}
101101
}
102102
None => dest,

0 commit comments

Comments
 (0)