Skip to content

Commit 1ccaac0

Browse files
committed
fix: #50
1 parent 69a3867 commit 1ccaac0

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "delay_timer"
3-
version = "0.11.4"
3+
version = "0.11.5"
44
authors = ["binchengZhao <binchengZhao@outlook.com>"]
55
edition = "2018"
66
repository = "https://github.com/BinChengZhao/delay-timer"

build/build.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/timer/runtime_trace/task_instance.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/utils/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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('>') {

0 commit comments

Comments
 (0)