mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-08-14 23:50:45 +00:00
Run clippy fix.
This commit is contained in:
parent
407ee38e3a
commit
e8169726b4
1 changed files with 3 additions and 5 deletions
|
@ -274,13 +274,11 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Box<dyn Error>> {
|
|||
let range = format!("{}-{}", start, end);
|
||||
query.add_pair(("range", range));
|
||||
}
|
||||
} else {
|
||||
if let Some(clen) = clen {
|
||||
} else if let Some(clen) = clen {
|
||||
let range = format!("0-{}", clen - 1);
|
||||
query.add_pair(("range", range));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let range = query.get("range").map(|s| s.to_string());
|
||||
|
||||
|
|
Loading…
Reference in a new issue