address clippy issues in latest rust release (#884)

This commit is contained in:
bmc-msft
2021-05-13 14:25:09 -04:00
committed by GitHub
parent 69f12f9d9f
commit 372c194f7a
14 changed files with 55 additions and 313 deletions

View File

@ -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
}