Bug 1755261 - Drive-by clippy fixes, r=webdriver-reviewers,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D139932
This commit is contained in:
James Graham 2022-03-02 14:08:47 +00:00
parent be0322a09b
commit 39b2232e0b
3 changed files with 3 additions and 13 deletions

View File

@ -935,7 +935,7 @@ mod tests {
assert!(iter.any(|arg| arg == &"--remote-debugging-port".to_owned()));
assert_eq!(iter.next(), Some(&"1234".to_owned()));
} else {
assert!(false, "CLI arguments for Firefox not found");
panic!("CLI arguments for Firefox not found");
}
}
@ -979,7 +979,7 @@ mod tests {
assert!(iter.any(|arg| arg == &"--remote-debugging-port".to_owned()));
assert_eq!(iter.next(), Some(&"1234".to_owned()));
} else {
assert!(false, "CLI arguments for Firefox not found");
panic!("CLI arguments for Firefox not found");
}
assert!(opts

View File

@ -236,17 +236,6 @@ mod tests {
assert_eq!(Level::Trace as usize, 10);
}
#[test]
fn test_level_eq() {
assert_eq!(Level::Fatal, Level::Fatal);
assert_eq!(Level::Error, Level::Error);
assert_eq!(Level::Warn, Level::Warn);
assert_eq!(Level::Info, Level::Info);
assert_eq!(Level::Config, Level::Config);
assert_eq!(Level::Debug, Level::Debug);
assert_eq!(Level::Trace, Level::Trace);
}
#[test]
fn test_level_from_log() {
assert_eq!(Level::from(log::Level::Error), Level::Error);

View File

@ -123,6 +123,7 @@ macro_rules! usage {
type ProgramResult<T> = result::Result<T, FatalError>;
#[allow(clippy::large_enum_variant)]
enum Operation {
Help,
Version,