File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " delay_timer"
3- version = " 0.11.4 "
3+ version = " 0.11.5 "
44authors = [" binchengZhao <binchengZhao@outlook.com>" ]
55edition = " 2018"
66repository = " https://github.com/BinChengZhao/delay-timer"
Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ fn main() -> Result<()> {
2121 }
2222 }
2323
24- // Check for a minimum version
25- if version ( ) ? >= Version :: parse ( "1.51.0" ) ? {
24+ // When the rustc version is >= 1.51.0 and < 1.75.0, we can use the
25+ let version = version ( ) ?;
26+ if version >= Version :: parse ( "1.51.0" ) ? && version < Version :: parse ( "1.75.0" ) ? {
2627 println ! ( "cargo:rustc-cfg=SPLIT_INCLUSIVE_COMPATIBLE" ) ;
2728 }
2829
Original file line number Diff line number Diff line change @@ -196,7 +196,10 @@ impl TaskInstancesChainMaintainer {
196196 self . inner_sender
197197 . send ( instance. clone ( ) )
198198 . await
199- . map_or ( ( ) , |_| { } ) ;
199+ . map_err ( |e| {
200+ tracing:: error!( "push_instance error: {:?}" , e) ;
201+ } )
202+ . ok ( ) ;
200203 self . inner_list . push_back ( instance) ;
201204 }
202205}
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ pub mod shell_command {
342342 //By Option(Some(Result<T>)), determine if there is an output stdio..
343343 //By Result<T>(OK(t)), determine if there is success open file.
344344 #[ cfg( not( SPLIT_INCLUSIVE_COMPATIBLE ) ) ]
345- fn _has_redirect_file ( command : & str ) -> Option < Result < File > > {
345+ fn _has_redirect_file ( command : & str ) -> Option < Result < File , AnyhowError > > {
346346 let angle_bracket = if command. contains ( ">>" ) {
347347 ">>"
348348 } else if command. contains ( '>' ) {
You can’t perform that action at this time.
0 commit comments