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:
Delweng
2024-10-14 23:45:26 +08:00
committed by GitHub
parent 523bfb9c81
commit f684dd4c4c
22 changed files with 87 additions and 135 deletions

View File

@ -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()),
)
}