diff options
| author | Thomas Otto <th1000s@posteo.net> | 2024-11-29 00:42:32 +0100 |
|---|---|---|
| committer | Thomas Otto <th1000s@posteo.net> | 2024-11-29 01:00:18 +0100 |
| commit | d33032f6b2002fa54b3284bc375b7d87a0dc8d26 (patch) | |
| tree | e34b3e475452a9e5edd5cc5ed97b2492adf3544a /src | |
| parent | 4655aa216a5d4fc5badc072ff1fb59962d79f1cb (diff) | |
clippy 1.83: fix unnecessary_first_then_check
Diffstat (limited to 'src')
| -rw-r--r-- | src/ansi/iterator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ansi/iterator.rs b/src/ansi/iterator.rs index be1e943..c688adb 100644 --- a/src/ansi/iterator.rs +++ b/src/ansi/iterator.rs @@ -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 |
