Skip to content

Commit

Permalink
Fix clippy lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
samwho committed Jan 10, 2025
1 parent a71b613 commit e3f74b9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,4 @@ chrono = "0.4"
chrono-tz = "0.10"

[dev-dependencies]
regex = "1"
test-case = "3"
7 changes: 2 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ mod tests {
use self::Op::*;
use self::Out::*;
use super::*;
use regex::Regex;
use std::io::{BufReader, Read};
use std::thread::sleep;
use std::time::Duration;
Expand Down Expand Up @@ -513,13 +512,11 @@ mod tests {
Spacer => assert!(line.ends_with("----")),
RightSpacer => assert!(line.starts_with("----")),
SpacerWithLondonTimezone => {
let re = Regex::new(r"GMT|BST").unwrap();
assert!(re.is_match(line));
assert!(line.contains("GMT") || line.contains("BST"));
assert!(line.ends_with("----"));
}
RightSpacerWithLondonTimezone => {
let re = Regex::new(r"GMT|BST").unwrap();
assert!(re.is_match(line));
assert!(line.contains("GMT") || line.contains("BST"));
assert!(line.starts_with("----"));
}
}
Expand Down

0 comments on commit e3f74b9

Please sign in to comment.