File tree Expand file tree Collapse file tree 5 files changed +8
-10
lines changed Expand file tree Collapse file tree 5 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1414 with :
1515 toolchain : stable
1616 profile : minimal
17- - run : cargo build
18- - run : cargo test
17+ - run : cargo build --release -p lognplot
18+ - run : cargo test -p lognplot
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ use std::sync::Arc;
2424
2525pub use state:: { GuiState , GuiStateHandle } ;
2626
27- #[ cfg( not( features = "hdf5" ) ) ]
27+ #[ cfg( not( feature = "hdf5" ) ) ]
2828mod io {
2929 use super :: GuiStateHandle ;
3030
Original file line number Diff line number Diff line change @@ -39,18 +39,18 @@ impl GuiState {
3939 self . db . delete_all ( ) ;
4040 }
4141
42- #[ cfg( features = "hdf5" ) ]
42+ #[ cfg( feature = "hdf5" ) ]
4343 pub fn save ( & self , filename : & Path ) -> Result < ( ) , String > {
4444 info ! ( "Save data to {:?}" , filename) ;
4545 super :: io:: export_data ( self . db . clone ( ) , filename) . map_err ( |e| e. to_string ( ) )
4646 }
4747
48- #[ cfg( features = "hdf5" ) ]
48+ #[ cfg( feature = "hdf5" ) ]
4949 pub fn load ( & self , filename : & Path ) -> Result < ( ) , String > {
5050 super :: io:: import_data ( self . db . clone ( ) , filename) . map_err ( |e| e. to_string ( ) )
5151 }
5252
53- #[ cfg( not( features = "hdf5" ) ) ]
53+ #[ cfg( not( feature = "hdf5" ) ) ]
5454 pub fn load ( & self , filename : & Path ) -> Result < ( ) , String > {
5555 Err ( "No hdf5 support!" . to_owned ( ) )
5656 }
Original file line number Diff line number Diff line change @@ -154,9 +154,8 @@ impl<'m> SerialWireViewer<'m> {
154154 visible. push_str ( & String :: from_utf8 ( part) . unwrap ( ) ) ;
155155 }
156156 print ! ( "{}" , visible) ;
157-
157+
158158 // println!("")
159-
160159 }
161160 _ => {
162161 info ! ( "Trace packet: {:?}" , packet) ;
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ const STLINK_V3S_PID: u16 = 0x374F;
1414fn find_st_link ( ) -> rusb:: Result < Option < rusb:: Device < rusb:: GlobalContext > > > {
1515 let first_match = rusb:: devices ( ) ?. iter ( ) . find ( |d| {
1616 if let Ok ( desc) = d. device_descriptor ( ) {
17- if
18- desc. vendor_id ( ) == STLINK_VID {
17+ if desc. vendor_id ( ) == STLINK_VID {
1918 match desc. product_id ( ) {
2019 STLINK_V2_PID | STLINK_V2_1_PID => true ,
2120 _ => false ,
You can’t perform that action at this time.
0 commit comments