Skip to content

Commit e3f13c1

Browse files
committed
Conditional lint suppression
1 parent c95f269 commit e3f13c1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/client/connect.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ use crate::{
2424
};
2525

2626
#[pin_project(project = RespConnectionInnerProj)]
27-
#[expect(clippy::large_enum_variant, reason = "will only be enabled if selected, and isn't moved once built")]
27+
#[cfg_attr(
28+
any(feature = "with-rustls", feature = "with-native-tls"),
29+
expect(
30+
clippy::large_enum_variant,
31+
reason = "will only be enabled if selected, and isn't moved once built"
32+
)
33+
)]
2834
pub enum RespConnectionInner {
2935
#[cfg(feature = "with-rustls")]
3036
Tls {

0 commit comments

Comments
 (0)