clippy 1.83: fix unnecessary_first_then_check

This commit is contained in:
Thomas Otto
2024-11-29 00:42:32 +01:00
parent 4655aa216a
commit d33032f6b2
+1 -1
View File
@@ -126,7 +126,7 @@ impl anstyle_parse::Perform for Performer {
return;
}
let is_sgr = byte == b'm' && intermediates.first().is_none();
let is_sgr = byte == b'm' && intermediates.is_empty();
let element = if is_sgr {
if params.is_empty() {
// Attr::Reset