diff options
author | 林炳权 <695601626@qq.com> | 2024-02-12 11:00:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 03:00:33 +0000 |
commit | 80d5ffbe7c4109229571bf94182cf3f40397795e (patch) | |
tree | bc802643634c5eb974c343b2d63060fe8de2dd3c /ext/cron/local.rs | |
parent | 26d9b2f3174030138a13bdb60c6c76a38fa0df19 (diff) |
chore: update to Rust 1.76 (#22376)
Update to Rust 1.76
Diffstat (limited to 'ext/cron/local.rs')
-rw-r--r-- | ext/cron/local.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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<u64, AnyError> { Ok(next_deadline.timestamp_millis() as u64) } -fn validate_backoff_schedule( - backoff_schedule: &Vec<u32>, -) -> 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")); } |