mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 12:28:24 +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:
@@ -254,12 +254,9 @@ impl<E: EthSpec> EnvironmentBuilder<E> {
|
||||
}
|
||||
|
||||
// Disable file logging if no path is specified.
|
||||
let path = match config.path {
|
||||
Some(path) => path,
|
||||
None => {
|
||||
self.log = Some(stdout_logger);
|
||||
return Ok(self);
|
||||
}
|
||||
let Some(path) = config.path else {
|
||||
self.log = Some(stdout_logger);
|
||||
return Ok(self);
|
||||
};
|
||||
|
||||
// Ensure directories are created becfore the logfile.
|
||||
|
||||
Reference in New Issue
Block a user