mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
Activate clippy::manual_let_else lint (#4889)
## Issue Addressed #4888 ## Proposed Changes Enabled `clippy::manual_let_else` lint and resolved the warning messages.
This commit is contained in:
@@ -525,9 +525,7 @@ impl DoppelgangerService {
|
||||
}
|
||||
|
||||
// Resolve the index from the server response back to a public key.
|
||||
let pubkey = if let Some(pubkey) = indices_map.get(&response.index) {
|
||||
pubkey
|
||||
} else {
|
||||
let Some(pubkey) = indices_map.get(&response.index) else {
|
||||
crit!(
|
||||
self.log,
|
||||
"Inconsistent indices map";
|
||||
|
||||
Reference in New Issue
Block a user