aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/atuin_pty_proxy/capture.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-13 01:36:41 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-13 01:36:41 +0200
commit47b76481e51451827530714512b30882d85e3a9a (patch)
tree3e64edfa304e11e4dff506683dd0a7ea7929123e /crates/turtle/src/atuin_pty_proxy/capture.rs
parentchore(treewide): Fix some of `clippy`'s error (diff)
downloadatuin-47b76481e51451827530714512b30882d85e3a9a.zip
chore(treewide): Also fix all `clippy` warnings
Diffstat (limited to 'crates/turtle/src/atuin_pty_proxy/capture.rs')
-rw-r--r--crates/turtle/src/atuin_pty_proxy/capture.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/turtle/src/atuin_pty_proxy/capture.rs b/crates/turtle/src/atuin_pty_proxy/capture.rs
index dbcb81fb..efba3c0b 100644
--- a/crates/turtle/src/atuin_pty_proxy/capture.rs
+++ b/crates/turtle/src/atuin_pty_proxy/capture.rs
@@ -187,6 +187,7 @@ fn normalize_screen_contents(contents: &str) -> String {
lines.join("\n")
}
+#[expect(clippy::naive_bytecount, reason = "This is just an estimation")]
fn estimated_rows(bytes: &[u8], cols: u16) -> u16 {
let newline_rows = bytes.iter().filter(|byte| **byte == b'\n').count() + 1;
let wrapped_rows = bytes.len() / cols as usize;