Apply a bunch of clippy lints

This commit is contained in:
Piv
2023-08-01 18:21:47 +09:30
parent f992efc018
commit 2485e45026
8 changed files with 80 additions and 81 deletions

View File

@@ -1,6 +1,7 @@
use std::{fs::File, io::BufWriter, path::PathBuf};
use clap::{Parser, Subcommand};
use coster_rs::CreateProductInputs;
#[derive(Parser)]
#[command(name = "coster-rs")]
@@ -177,11 +178,13 @@ fn main() -> anyhow::Result<()> {
output,
} => coster_rs::create_products(
&mut csv::Reader::from_path(definitions)?,
&mut csv::Reader::from_path(encounters)?,
&mut csv::Reader::from_path(services)?,
&mut csv::Reader::from_path(transfers)?,
&mut csv::Reader::from_path(procedures)?,
&mut csv::Reader::from_path(diagnoses)?,
CreateProductInputs {
encounters: csv::Reader::from_path(encounters)?,
services: csv::Reader::from_path(services)?,
transfers: csv::Reader::from_path(transfers)?,
procedures: csv::Reader::from_path(procedures)?,
diagnoses: csv::Reader::from_path(diagnoses)?,
},
&mut csv::Writer::from_path(output)?,
1000000,
),