mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-18 20:58:06 +00:00
address clippy issues in latest rust release (#884)
This commit is contained in:
@ -417,13 +417,11 @@ mod global {
|
||||
|
||||
let mut clients = Vec::new();
|
||||
|
||||
for client in vec![instance, microsoft] {
|
||||
if let Some(client) = client {
|
||||
match client.into_inner() {
|
||||
Ok(c) => clients.push(c),
|
||||
Err(e) => panic!("Failed to extract telemetry client: {}", e),
|
||||
};
|
||||
}
|
||||
for client in vec![instance, microsoft].into_iter().flatten() {
|
||||
match client.into_inner() {
|
||||
Ok(c) => clients.push(c),
|
||||
Err(e) => panic!("Failed to extract telemetry client: {}", e),
|
||||
};
|
||||
}
|
||||
clients
|
||||
}
|
||||
|
Reference in New Issue
Block a user