File tree 4 files changed +9
-5
lines changed
4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " delay_timer"
3
- version = " 0.11.4 "
3
+ version = " 0.11.5 "
4
4
authors = [" binchengZhao <binchengZhao@outlook.com>" ]
5
5
edition = " 2018"
6
6
repository = " https://github.com/BinChengZhao/delay-timer"
Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ fn main() -> Result<()> {
21
21
}
22
22
}
23
23
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" ) ? {
26
27
println ! ( "cargo:rustc-cfg=SPLIT_INCLUSIVE_COMPATIBLE" ) ;
27
28
}
28
29
Original file line number Diff line number Diff line change @@ -196,7 +196,10 @@ impl TaskInstancesChainMaintainer {
196
196
self . inner_sender
197
197
. send ( instance. clone ( ) )
198
198
. await
199
- . map_or ( ( ) , |_| { } ) ;
199
+ . map_err ( |e| {
200
+ tracing:: error!( "push_instance error: {:?}" , e) ;
201
+ } )
202
+ . ok ( ) ;
200
203
self . inner_list . push_back ( instance) ;
201
204
}
202
205
}
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ pub mod shell_command {
342
342
//By Option(Some(Result<T>)), determine if there is an output stdio..
343
343
//By Result<T>(OK(t)), determine if there is success open file.
344
344
#[ 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 > > {
346
346
let angle_bracket = if command. contains ( ">>" ) {
347
347
">>"
348
348
} else if command. contains ( '>' ) {
You can’t perform that action at this time.
0 commit comments