From 80d5ffbe7c4109229571bf94182cf3f40397795e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=82=B3=E6=9D=83?= <695601626@qq.com> Date: Mon, 12 Feb 2024 11:00:33 +0800 Subject: chore: update to Rust 1.76 (#22376) Update to Rust 1.76 --- ext/cron/local.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext') diff --git a/ext/cron/local.rs b/ext/cron/local.rs index cc3f57569..31d001bc3 100644 --- a/ext/cron/local.rs +++ b/ext/cron/local.rs @@ -318,9 +318,7 @@ fn compute_next_deadline(cron_expression: &str) -> Result { Ok(next_deadline.timestamp_millis() as u64) } -fn validate_backoff_schedule( - backoff_schedule: &Vec, -) -> Result<(), AnyError> { +fn validate_backoff_schedule(backoff_schedule: &[u32]) -> Result<(), AnyError> { if backoff_schedule.len() > MAX_BACKOFF_COUNT { return Err(type_error("Invalid backoff schedule")); } -- cgit v1.2.3