Skip to content

Commit

Permalink
clippy: allow clippy::used_underscore_binding
Browse files Browse the repository at this point in the history
this is intentional - just a hint to the compiler we don't really care about _record, just the count
  • Loading branch information
jqnatividad committed Jan 8, 2024
1 parent 3a61e51 commit e6e66c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ pub fn count_rows(conf: &Config) -> Result<u64, CliError> {
if let Ok(mut rdr) = conf.reader() {
let mut count = 0_u64;
let mut _record = csv::ByteRecord::new();
#[allow(clippy::used_underscore_binding)]
while rdr.read_byte_record(&mut _record).unwrap_or_default() {
count += 1;
}
Expand Down

0 comments on commit e6e66c2

Please sign in to comment.