Skip to content

Commit 60f88a4

Browse files
committed
implement clippy suggestion not to use assert_eq on ()
1 parent 6d21f9e commit 60f88a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/util/network.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fn with_retry_repeats_the_call_then_works() {
112112
let config = Config::default().unwrap();
113113
*config.shell() = Shell::from_write(Box::new(Vec::new()));
114114
let result = with_retry(&config, || results.pop().unwrap());
115-
assert_eq!(result.unwrap(), ())
115+
assert!(result.is_ok())
116116
}
117117

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

141141
#[test]

0 commit comments

Comments
 (0)