diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-13 01:36:41 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-13 01:36:41 +0200 |
| commit | 47b76481e51451827530714512b30882d85e3a9a (patch) | |
| tree | 3e64edfa304e11e4dff506683dd0a7ea7929123e /crates/turtle/src/atuin_pty_proxy/capture.rs | |
| parent | chore(treewide): Fix some of `clippy`'s error (diff) | |
| download | atuin-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.rs | 1 |
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; |
