diff options
| author | Justin Su <injustsu@gmail.com> | 2025-07-15 08:09:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-15 08:09:05 -0400 |
| commit | cd4a9f4e74d243d44bdaebde5d4188cdc100951a (patch) | |
| tree | cb81cc74209efc3ea35d1030b27d74e2344aa75c /src/utils/tabs.rs | |
| parent | ed09269ebace8aad765c57a2821502ebb8c11f11 (diff) | |
Fix clippy errors (#2016)
Diffstat (limited to 'src/utils/tabs.rs')
| -rw-r--r-- | src/utils/tabs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/tabs.rs b/src/utils/tabs.rs index 67eab32..47ec0ef 100644 --- a/src/utils/tabs.rs +++ b/src/utils/tabs.rs @@ -21,7 +21,7 @@ impl TabCfg { /// Expand tabs as spaces. pub fn expand(line: &str, tab_cfg: &TabCfg) -> String { - if tab_cfg.replace() && line.as_bytes().iter().any(|c| *c == b'\t') { + if tab_cfg.replace() && line.as_bytes().contains(&b'\t') { itertools::join(line.split('\t'), &tab_cfg.replacement) } else { line.to_string() |
