this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

:rotating_light: Apply cargo autofixes

authored by

Gwenn Le Bihan and committed by
Ewen Le Bihan
6c527db5 ec32161a

+5 -5
+4 -4
src/lib.rs
··· 13 13 use indicatif::{ProgressBar, ProgressStyle}; 14 14 pub use midi::MidiSynchronizer; 15 15 use std::cmp::min; 16 - use std::fmt::{self, Formatter}; 16 + use std::fmt::{Formatter}; 17 17 use std::fs::{self, create_dir, create_dir_all, remove_dir_all}; 18 18 use std::path::{Path, PathBuf}; 19 19 use std::sync::{Arc, Mutex}; ··· 668 668 let mut frame_writer_threads = vec![]; 669 669 let mut frames_to_write: Vec<(String, usize)> = vec![]; 670 670 671 - remove_dir_all(self.frames_output_directory.clone()); 672 - create_dir(self.frames_output_directory.clone()).unwrap(); 671 + remove_dir_all(self.frames_output_directory); 672 + create_dir(self.frames_output_directory).unwrap(); 673 673 create_dir_all(Path::new(&output_file).parent().unwrap()).unwrap(); 674 674 675 675 let progress_bar = indicatif::ProgressBar::new(self.total_frames() as u64).with_style( ··· 682 682 let total_frames = self.total_frames(); 683 683 let aspect_ratio = canvas.grid_size.0 as f32 / canvas.grid_size.1 as f32; 684 684 let resolution = self.resolution; 685 - let frames_output_directory = self.frames_output_directory.clone(); 685 + let frames_output_directory = self.frames_output_directory; 686 686 progress_bar.set_message("Rendering frames to SVG"); 687 687 688 688 for _ in 0..self.duration_ms() {
+1 -1
src/midi.rs
··· 251 251 252 252 let mut result = HashMap::<String, Vec<Note>>::new(); 253 253 254 - for (ms, notes) in stem_notes.iter().sorted_by_key(|(ms, _)| *ms) { 254 + for (_ms, notes) in stem_notes.iter().sorted_by_key(|(ms, _)| *ms) { 255 255 for (track_name, note) in notes { 256 256 // println!( 257 257 // "{} {} {:?}",