summaryrefslogtreecommitdiff
path: root/src/utils/tabs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/tabs.rs')
-rw-r--r--src/utils/tabs.rs2
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()