implement clippy suggestion not to use assert_eq on ()

This commit is contained in:
Igor Makarov 2019-11-10 15:14:02 +02:00
parent 6d21f9e08c
commit 60f88a4b7a

View File

@ -112,7 +112,7 @@ fn with_retry_repeats_the_call_then_works() {
let config = Config::default().unwrap();
*config.shell() = Shell::from_write(Box::new(Vec::new()));
let result = with_retry(&config, || results.pop().unwrap());
assert_eq!(result.unwrap(), ())
assert!(result.is_ok())
}
#[test]
@ -135,7 +135,7 @@ fn with_retry_finds_nested_spurious_errors() {
let config = Config::default().unwrap();
*config.shell() = Shell::from_write(Box::new(Vec::new()));
let result = with_retry(&config, || results.pop().unwrap());
assert_eq!(result.unwrap(), ())
assert!(result.is_ok())
}
#[test]