Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Feb 3, 2025
1 parent 5cf4ed7 commit dc9465b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use clap::Parser;
use std::iter;
use std::sync::LazyLock;

use csvsql::ExactSizeIterable;
Expand Down Expand Up @@ -101,8 +100,11 @@ fn _load_table_from_loader(
}

stmt.execute(rusqlite::params_from_iter(
row.chain(iter::repeat(&b""[..]).take(normalized_cols.len() - row_len))
.map(String::from_utf8_lossy),
row.chain(std::iter::repeat_n(
&b""[..],
normalized_cols.len() - row_len,
))
.map(String::from_utf8_lossy),
))
.unwrap();

Expand Down

0 comments on commit dc9465b

Please sign in to comment.