mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1755261 - Drive-by clippy fixes, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D139932
This commit is contained in:
parent
be0322a09b
commit
39b2232e0b
@ -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
|
||||
|
@ -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);
|
||||
|
@ -123,6 +123,7 @@ macro_rules! usage {
|
||||
|
||||
type ProgramResult<T> = result::Result<T, FatalError>;
|
||||
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
enum Operation {
|
||||
Help,
|
||||
Version,
|
||||
|
Loading…
Reference in New Issue
Block a user