mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(clippy): enable if_then_some_else_none lint (#11679)
Signed-off-by: jsvisa <delweng@gmail.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -78,7 +78,7 @@ impl LogArgs {
|
||||
format,
|
||||
self.verbosity.directive().to_string(),
|
||||
filter,
|
||||
if use_color { Some(self.color.to_string()) } else { None },
|
||||
use_color.then(|| self.color.to_string()),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user