chore: fix clippy lints

This commit is contained in:
ThetaDev 2023-08-30 22:05:18 +02:00
parent 4780096b00
commit ac25490435
15 changed files with 70 additions and 73 deletions

View file

@ -186,7 +186,7 @@ pub fn parse_largenum_en(string: &str) -> Option<u64> {
/// and return the duration in seconds.
pub fn parse_video_length(text: &str) -> Option<u32> {
static VIDEO_LENGTH_REGEX: Lazy<Regex> =
Lazy::new(|| Regex::new(r#"(?:(\d+)[:.])?(\d{1,2})[:.](\d{2})"#).unwrap());
Lazy::new(|| Regex::new(r"(?:(\d+)[:.])?(\d{1,2})[:.](\d{2})").unwrap());
VIDEO_LENGTH_REGEX.captures(text).map(|cap| {
let hrs = cap
.get(1)