This match statement can be collapsed into an if-let statement
Using env::var with a string literal, consider using a static string to refer to environment variables.
Unnecessary braces in use statement
Found unnecessary fold

|
@@ -173,7 +173,7 @@ mod tests {
|
|
|
173
173
|
.unwrap();
|
|
174
174
|
let mut abortable_future = Box::new(Abortable::new(pending::<()>(), abort_registration));
|
|
175
|
-
|
|
175
|
+
assert!(in_flight_requests.cancel_request(0));
|
|
176
176
|
assert_matches!(
|
|
177
177
|
abortable_future.poll_unpin(&mut noop_context()),
|
|
178
178
|
Poll::Ready(Err(_))
|