refactor: fix new clippy warnings, fmt

This commit is contained in:
Jake Stanger
2023-08-25 22:55:00 +01:00
parent b9c41af0f7
commit fea1f18524
6 changed files with 38 additions and 28 deletions

View File

@@ -224,7 +224,9 @@ fn create_bars(
.get(i as usize)
.ok_or_else(|| Report::msg(error::ERR_OUTPUTS))?;
let Some(monitor_name) = &output.name else { continue };
let Some(monitor_name) = &output.name else {
continue;
};
config.monitors.as_ref().map_or_else(
|| {