aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-01-13 21:05:59 -0800
committerRose Hogenson <rosehogenson@posteo.net>2024-01-13 21:05:59 -0800
commitc92c5a78e6333b6025131c031c6466413e60e442 (patch)
tree4d4bde26bac7bb6e8fb247854836404c981365d6 /src/main.rs
parentb9fe028f88ed6d6975576ae9b2891294d0054035 (diff)
downloadeditor-c92c5a78e6333b6025131c031c6466413e60e442.tar.zst
Apply some clippy suggestions.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3663052..66976fc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -21,7 +21,7 @@ fn line_offset(stdin: &mut Reader, line: &Rope, col: u16) -> Result<usize, Box<d
return Ok(i);
}
let c = line.byte(i);
- if !(c == b'\t' || b' ' <= c && c <= b'~') {
+ if !(c == b'\t' || (b' '..=b'~').contains(&c)) {
break;
}
if n == col {