Fix deprecation warning

This commit is contained in:
FliegendeWurst 2021-05-11 19:03:37 +02:00
parent 1f9ab6a07c
commit cea829b79e

View File

@ -416,7 +416,7 @@ async fn process(ilias: Arc<ILIAS>, path: PathBuf, obj: Object) -> Result<()> {
query_parameters.push(("cmdMode".into(), "asynch".into())); query_parameters.push(("cmdMode".into(), "asynch".into()));
full_url.query_pairs_mut().clear().extend_pairs(&query_parameters).finish(); full_url.query_pairs_mut().clear().extend_pairs(&query_parameters).finish();
log!(1, "Loading {}", full_url); log!(1, "Loading {}", full_url);
let data = ilias.download(&full_url.into_string()).await?; let data = ilias.download(full_url.as_str()).await?;
let html = data.text().await?; let html = data.text().await?;
let html = Html::parse_fragment(&html); let html = Html::parse_fragment(&html);
for row in html.select(&video_tr) { for row in html.select(&video_tr) {
@ -1321,7 +1321,7 @@ impl URL {
} }
} }
Ok(URL { Ok(URL {
url: url.into_string(), url: url.into(),
baseClass, baseClass,
cmdClass, cmdClass,
cmdNode, cmdNode,