File tree Expand file tree Collapse file tree 7 files changed +14
-12
lines changed
Expand file tree Collapse file tree 7 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 3030 packages . ${ system } . default = pkgs . rustPlatform . buildRustPackage {
3131 pname = "scoreman" ;
3232 version = "1.0.0" ;
33- cargoHash = "sha256-ogwoc6keNJIStDpz9BiEclpiFnVHIKWA0BQRjNaMu2g =" ;
33+ cargoHash = "sha256-Rq1gAKmz0DPe9Dsgou5CJmTUM6ifG9AgHSOct7jcRjI =" ;
3434 src = ./. ;
3535 } ;
3636 devShells . ${ system } . default = pkgs . mkShell {
Original file line number Diff line number Diff line change 1- use std:: time:: { Duration , Instant } ;
1+ use std:: time:: Instant ;
22
33use clap:: ValueEnum ;
44use tracing:: trace;
@@ -12,7 +12,7 @@ use crate::{
1212 } ,
1313 Backend ,
1414 } ,
15- parser:: parser :: parse,
15+ parser:: parse,
1616 time,
1717} ;
1818
@@ -71,7 +71,7 @@ impl Backend for FixupBackend {
7171 let mut diagnostics = vec ! [ ] ;
7272 // TODO: figure out a way not to clone these
7373 let mut parser_input = parser_input. to_owned ( ) ;
74- let mut parse_time = Duration :: from_secs ( 0 ) ;
74+ let mut parse_time;
7575 let fixup_start = Instant :: now ( ) ;
7676 let mut location_tracker = LocationTracker :: new ( ) ;
7777 loop {
Original file line number Diff line number Diff line change @@ -7,9 +7,11 @@ use midly::{
77use tracing:: trace;
88
99use super :: { Backend , BackendResult } ;
10- use crate :: parser:: parser:: { parse, ParseResult } ;
11- use crate :: parser:: tab_element:: TabElement ;
12- use crate :: parser:: tab_element:: TabElement :: Fret ;
10+ use crate :: parser:: {
11+ parse,
12+ tab_element:: TabElement :: { self , Fret } ,
13+ ParseResult ,
14+ } ;
1315use crate :: time;
1416
1517const BPM : u32 = 80 ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pub fn write_muxml2_note(
4444 let mut octave_buf = itoa:: Buffer :: new ( ) ;
4545 buf. write_str ( octave_buf. format ( octave) ) ?;
4646 buf. write_str (
47- r#"<octave>
47+ r#"</ octave>
4848</pitch>
4949<duration>1</duration>
5050<type>eighth</type>
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ pub mod fretboard;
44mod muxml2_tests;
55pub mod settings;
66use crate :: backend:: errors:: backend_error:: BackendError ;
7- use crate :: parser:: parser;
8- use crate :: parser:: parser:: { source_location_from_stream, ParseResult } ;
7+ use crate :: parser;
98use crate :: parser:: tab_element:: TabElement ;
9+ use crate :: parser:: { source_location_from_stream, ParseResult } ;
1010use crate :: {
1111 backend:: { Backend , BackendResult } ,
1212 rlen, time,
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ use crate::backend::{
33 muxml:: { settings:: Settings , MuxmlBackend } ,
44 Backend ,
55} ;
6- use crate :: parser:: parser:: { parse, source_location_from_stream} ;
76use itertools:: Itertools ;
87
98#[ test]
Original file line number Diff line number Diff line change 1- pub mod parser;
1+ mod parser;
2+ pub use parser:: * ;
23#[ cfg( test) ]
34mod parser_tests;
45pub ( crate ) mod tab_element;
You can’t perform that action at this time.
0 commit comments