From 29f9dea317d481d7a79c01027ac296d3a6d2de8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=90=E5=AE=B6?= Date: Mon, 21 Oct 2024 08:40:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96task=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- macro/src/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macro/src/task.rs b/macro/src/task.rs index f325a7e..9fbb32f 100644 --- a/macro/src/task.rs +++ b/macro/src/task.rs @@ -44,7 +44,7 @@ impl Parse for TaskArgs { "interval" => { if let Expr::Lit(ExprLit{ lit, .. }) = meta.value { if let Lit::Int(value) = lit { - task_args.interval = value.base10_parse().unwrap(); + task_args.interval = value.base10_parse()?; } } }