mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-19 06:18:56 +08:00
Fix clippy warnings
This commit is contained in:
@@ -215,10 +215,8 @@ impl VTab for CSVTab {
|
||||
} else {
|
||||
let mut record = csv::ByteRecord::new();
|
||||
if try!(reader.read_byte_record(&mut record)) {
|
||||
let mut count = 0;
|
||||
for _ in record.iter() {
|
||||
cols.push(format!("c{}", count));
|
||||
count += 1;
|
||||
for (i, _) in record.iter().enumerate() {
|
||||
cols.push(format!("c{}", i));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -249,7 +247,7 @@ impl VTab for CSVTab {
|
||||
|
||||
// Only a forward full table scan is supported.
|
||||
fn best_index(&self, info: &mut IndexInfo) -> Result<()> {
|
||||
info.set_estimated_cost(1000000.);
|
||||
info.set_estimated_cost(1_000_000.);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user