chore: fix clippy lints
This commit is contained in:
parent
4780096b00
commit
ac25490435
15 changed files with 70 additions and 73 deletions
|
|
@ -46,7 +46,7 @@ fn get_download_range(offset: u64, size: Option<u64>) -> Range<u64> {
|
|||
}
|
||||
|
||||
fn parse_cr_header(cr_header: &str) -> Result<(u64, u64)> {
|
||||
static PATTERN: Lazy<Regex> = Lazy::new(|| Regex::new(r#"bytes (\d+)-(\d+)/(\d+)"#).unwrap());
|
||||
static PATTERN: Lazy<Regex> = Lazy::new(|| Regex::new(r"bytes (\d+)-(\d+)/(\d+)").unwrap());
|
||||
|
||||
let captures = PATTERN.captures(cr_header).ok_or_else(|| {
|
||||
DownloadError::Progressive(
|
||||
|
|
|
|||
Reference in a new issue