From 1cf0c031964a8066def276ca8850a5365c3c542f Mon Sep 17 00:00:00 2001 From: Yangyang Li Date: Sat, 24 Aug 2024 19:54:19 -0500 Subject: [PATCH] refactor: Improve file variable names in FqToFa struct --- crates/deepbiop-cli/src/cli/fq2fa.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/deepbiop-cli/src/cli/fq2fa.rs b/crates/deepbiop-cli/src/cli/fq2fa.rs index 896e8c2..8a14825 100644 --- a/crates/deepbiop-cli/src/cli/fq2fa.rs +++ b/crates/deepbiop-cli/src/cli/fq2fa.rs @@ -24,11 +24,11 @@ impl FqToFa { for fq in &self.fq { let fq_records = fq::io::fastq_to_fasta(fq)?; - let file_path = fq.with_extension("fa"); - let file = std::fs::File::create(&file_path)?; - let mut writer = fasta::io::Writer::new(file); + let fa_file_path = fq.with_extension("fa"); + let fa_file_handler = std::fs::File::create(&fa_file_path)?; + let mut fa_writer = fasta::io::Writer::new(fa_file_handler); for record in fq_records { - writer.write_record(&record)?; + fa_writer.write_record(&record)?; } } Ok(())