From 3666de2196cb13d09e68ec18558fb457bd21177f Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Thu, 5 Sep 2024 22:28:30 +0200 Subject: [PATCH] Use #[expect(clippy:...)] --- src/cookies.rs | 2 +- src/run.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cookies.rs b/src/cookies.rs index 07cc5e9b..a95210eb 100644 --- a/src/cookies.rs +++ b/src/cookies.rs @@ -39,7 +39,7 @@ pub struct CookieJar<'a>(MutexGuard<'a, CookieStore>); /// ``` pub struct Cookie<'a>(CookieInner<'a>); -#[allow(clippy::large_enum_variant)] +#[expect(clippy::large_enum_variant)] enum CookieInner<'a> { Borrowed(&'a cookie_store::Cookie<'a>), Owned(cookie_store::Cookie<'a>), diff --git a/src/run.rs b/src/run.rs index 613aab20..ad009f83 100644 --- a/src/run.rs +++ b/src/run.rs @@ -180,7 +180,7 @@ fn flow_run( } /// Return type of [`flow_run`]. -#[allow(clippy::large_enum_variant)] +#[expect(clippy::large_enum_variant)] enum FlowResult { /// Flow resulted in a redirect. Redirect(Flow, CallTimings),