From 136c0f2682961c9bcfc458c806f44543a340c711 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 28 Jan 2026 05:57:08 +0000 Subject: [PATCH] Mitigate clippy::duration_suboptimal_units until 1.91 msrv upgrade. Signed-off-by: Jason Volk --- src/api/mod.rs | 1 + src/main/lib.rs | 1 + src/router/mod.rs | 1 + src/service/mod.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/src/api/mod.rs b/src/api/mod.rs index 8ef23717..46db297e 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -1,5 +1,6 @@ #![type_length_limit = "262144"] //TODO: REDUCE ME #![expect(clippy::toplevel_ref_arg)] +#![expect(clippy::duration_suboptimal_units)] // remove after MSRV 1.91 pub mod client; pub mod router; diff --git a/src/main/lib.rs b/src/main/lib.rs index 22874067..e66ad5bd 100644 --- a/src/main/lib.rs +++ b/src/main/lib.rs @@ -1,4 +1,5 @@ #![type_length_limit = "4096"] //TODO: reduce me +#![expect(clippy::duration_suboptimal_units)] // remove after MSRV 1.91 pub mod args; pub mod logging; diff --git a/src/router/mod.rs b/src/router/mod.rs index 6a2c2193..0f9a9958 100644 --- a/src/router/mod.rs +++ b/src/router/mod.rs @@ -1,4 +1,5 @@ #![type_length_limit = "32768"] //TODO: reduce me +#![expect(clippy::duration_suboptimal_units)] // remove after MSRV 1.91 mod layers; mod request; diff --git a/src/service/mod.rs b/src/service/mod.rs index ce58b8fa..c21ae122 100644 --- a/src/service/mod.rs +++ b/src/service/mod.rs @@ -1,6 +1,7 @@ #![recursion_limit = "256"] #![type_length_limit = "98304"] #![expect(refining_impl_trait)] +#![expect(clippy::duration_suboptimal_units)] // remove after MSRV 1.91 mod manager; mod migrations;