From b9f22aba617df49d46687de0f238ebafe9880d70 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 5 Apr 2024 12:11:25 +0200 Subject: [PATCH] clippy --- crates/api_common/src/lib.rs | 2 +- docker/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/api_common/src/lib.rs b/crates/api_common/src/lib.rs index fb0087f4c..78c443976 100644 --- a/crates/api_common/src/lib.rs +++ b/crates/api_common/src/lib.rs @@ -61,7 +61,7 @@ pub(crate) mod tests { #[test] fn test_federate_retry_sleep_duration() { - let s = |secs| Duration::from_secs(secs); + let s = Duration::from_secs; assert_eq!(s(1), federate_retry_sleep_duration(0)); assert_eq!(s(2), federate_retry_sleep_duration(1)); assert_eq!(s(4), federate_retry_sleep_duration(2)); diff --git a/docker/Dockerfile b/docker/Dockerfile index 9dcd88026..9539402df 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.6 -ARG RUST_VERSION=1.77 +ARG RUST_VERSION=1.76 ARG CARGO_BUILD_FEATURES=default ARG RUST_RELEASE_MODE=debug