提交 d0caca7c authored 作者: Serhij S's avatar Serhij S

ci fixes

上级 345ac844
......@@ -74,6 +74,7 @@ default = ["locking-default"]
insta = "1.36.1"
log = "0.4.21"
tokio = { version = "=1.36.0", features = ["rt", "macros", "time"] }
tokio-util = "=0.7.11"
tracing = { version = "0.1.40", features = ["log"] }
[[example]]
......
......@@ -30,11 +30,11 @@ impl<T> Default for Supervisor<T> {
macro_rules! vacant_entry {
($self:ident, $builder:ident) => {{
let Some(name) = $builder.name.clone() else {
return Err(Error::SupervisorNameNotSpecified);
};
return Err(Error::SupervisorNameNotSpecified);
};
let btree_map::Entry::Vacant(entry) = $self.tasks.entry(name.clone()) else {
return Err(Error::SupervisorDuplicateTask(name));
};
return Err(Error::SupervisorDuplicateTask(name));
};
entry
}};
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论