From 7e496391c6e5719e04d0d09c98f63976962e654a Mon Sep 17 00:00:00 2001 From: Joris Bayer Date: Fri, 18 Oct 2024 09:28:14 +0200 Subject: [PATCH] lint: Rust 1.82 (#4150) --- relay-config/src/redis.rs | 1 + relay-ffi/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/relay-config/src/redis.rs b/relay-config/src/redis.rs index c6350d5a21..4874863195 100644 --- a/relay-config/src/redis.rs +++ b/relay-config/src/redis.rs @@ -208,6 +208,7 @@ pub enum RedisConfigRef<'a> { } /// Helper struct bundling connections and options for the various Redis pools. +#[allow(clippy::large_enum_variant)] #[derive(Clone, Debug)] pub enum RedisPoolConfigs<'a> { /// Use one pool for everything. diff --git a/relay-ffi/src/lib.rs b/relay-ffi/src/lib.rs index 3a2552a6ac..0b0c8b9b2a 100644 --- a/relay-ffi/src/lib.rs +++ b/relay-ffi/src/lib.rs @@ -231,7 +231,7 @@ pub fn take_last_error() -> Option { pub struct Panic(String); impl Panic { - fn new(info: &panic::PanicInfo) -> Self { + fn new(info: &panic::PanicHookInfo) -> Self { let thread = thread::current(); let thread = thread.name().unwrap_or("unnamed");