From 47b76481e51451827530714512b30882d85e3a9a Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 13 Jun 2026 01:36:41 +0200 Subject: chore(treewide): Also fix all `clippy` warnings --- crates/turtle/src/atuin_pty_proxy/capture.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/turtle/src/atuin_pty_proxy/capture.rs') 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; -- cgit v1.3.1