Skip to content

Commit

Permalink
Ignore unbuffered_bytes clippy lint
Browse files Browse the repository at this point in the history
    warning: calling .bytes() is very inefficient when data is not in memory
       --> src/read.rs:202:40
        |
    202 |             iter: LineColIterator::new(reader.bytes()),
        |                                        ^^^^^^^^^^^^^^
        |
        = help: consider using `BufReader`
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unbuffered_bytes
        = note: `-W clippy::unbuffered-bytes` implied by `-W clippy::all`
        = help: to override `-W clippy::all` add `#[allow(clippy::unbuffered_bytes)]`
  • Loading branch information
dtolnay committed Mar 3, 2025
1 parent 76cd4fb commit f7200c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@
clippy::needless_lifetimes,
clippy::return_self_not_must_use,
clippy::transmute_ptr_to_ptr,
clippy::unbuffered_bytes,
clippy::unconditional_recursion, // https://github.com/rust-lang/rust-clippy/issues/12133
clippy::unnecessary_wraps
)]
Expand Down

0 comments on commit f7200c3

Please sign in to comment.