mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Fix build
This commit is contained in:
parent
ebe2db5987
commit
0396dfc096
@ -5,7 +5,6 @@ use std::{collections::HashMap, error::Error as _, io::Write, sync::Arc};
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use cookie_store::CookieStore;
|
||||
use once_cell::sync::Lazy;
|
||||
use regex::Regex;
|
||||
use reqwest::{Client, IntoUrl, Proxy, Url};
|
||||
use reqwest_cookie_store::CookieStoreMutex;
|
||||
use scraper::{ElementRef, Html, Selector};
|
||||
@ -223,7 +222,7 @@ impl ILIAS {
|
||||
unreachable!()
|
||||
}
|
||||
|
||||
pub async fn is_error_response(html: &Html) {
|
||||
pub fn is_error_response(html: &Html) -> bool {
|
||||
html.select(&ALERT_DANGER).next().is_some()
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use futures::future::{self, Either};
|
||||
use futures::StreamExt;
|
||||
use ignore::gitignore::Gitignore;
|
||||
use indicatif::{ProgressDrawTarget, ProgressStyle};
|
||||
use structopt::StructOpt;
|
||||
use tokio::fs;
|
||||
|
Loading…
Reference in New Issue
Block a user