@@ -210,30 +210,30 @@ impl Genome {
210210 let chr_name_path = dir. join ( "chrName.txt" ) ;
211211 let mut f = fs:: File :: create ( & chr_name_path) . map_err ( |e| Error :: io ( e, & chr_name_path) ) ?;
212212 for name in & self . chr_name {
213- writeln ! ( f, "{}" , name ) . map_err ( |e| Error :: io ( e, & chr_name_path) ) ?;
213+ writeln ! ( f, "{name}" ) . map_err ( |e| Error :: io ( e, & chr_name_path) ) ?;
214214 }
215215
216216 // Write chrLength.txt
217217 let chr_length_path = dir. join ( "chrLength.txt" ) ;
218218 let mut f =
219219 fs:: File :: create ( & chr_length_path) . map_err ( |e| Error :: io ( e, & chr_length_path) ) ?;
220220 for & len in & self . chr_length {
221- writeln ! ( f, "{}" , len ) . map_err ( |e| Error :: io ( e, & chr_length_path) ) ?;
221+ writeln ! ( f, "{len}" ) . map_err ( |e| Error :: io ( e, & chr_length_path) ) ?;
222222 }
223223
224224 // Write chrStart.txt (includes the extra n_genome entry)
225225 let chr_start_path = dir. join ( "chrStart.txt" ) ;
226226 let mut f = fs:: File :: create ( & chr_start_path) . map_err ( |e| Error :: io ( e, & chr_start_path) ) ?;
227227 for & start in & self . chr_start {
228- writeln ! ( f, "{}" , start ) . map_err ( |e| Error :: io ( e, & chr_start_path) ) ?;
228+ writeln ! ( f, "{start}" ) . map_err ( |e| Error :: io ( e, & chr_start_path) ) ?;
229229 }
230230
231231 // Write chrNameLength.txt (tab-separated)
232232 let chr_name_length_path = dir. join ( "chrNameLength.txt" ) ;
233233 let mut f = fs:: File :: create ( & chr_name_length_path)
234234 . map_err ( |e| Error :: io ( e, & chr_name_length_path) ) ?;
235235 for ( name, & len) in self . chr_name . iter ( ) . zip ( & self . chr_length ) {
236- writeln ! ( f, "{}\t {}" , name , len ) . map_err ( |e| Error :: io ( e, & chr_name_length_path) ) ?;
236+ writeln ! ( f, "{name }\t {len}" ) . map_err ( |e| Error :: io ( e, & chr_name_length_path) ) ?;
237237 }
238238
239239 // Write genomeParameters.txt — byte-for-byte matching STAR's
@@ -319,7 +319,7 @@ impl Genome {
319319 . sjdb_gtf_file
320320 . as_ref ( )
321321 . map_or_else ( || "-" . to_string ( ) , |p| p. display ( ) . to_string ( ) ) ;
322- writeln ! ( f, "sjdbGTFfile\t {}" , gtf_str ) . map_err ( |e| Error :: io ( e, & path) ) ?;
322+ writeln ! ( f, "sjdbGTFfile\t {gtf_str}" ) . map_err ( |e| Error :: io ( e, & path) ) ?;
323323 writeln ! ( f, "sjdbGTFchrPrefix\t -" ) . map_err ( |e| Error :: io ( e, & path) ) ?;
324324 writeln ! ( f, "sjdbGTFfeatureExon\t exon" ) . map_err ( |e| Error :: io ( e, & path) ) ?;
325325 writeln ! ( f, "sjdbGTFtagExonParentTranscript\t transcript_id" )
0 commit comments