From 9620281df9252e1a19aa4a8d1e9421be445b7568 Mon Sep 17 00:00:00 2001 From: soruh Date: Fri, 31 Jul 2026 03:38:54 +0200 Subject: [PATCH] Disable conflicting redundant visibility lint --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index ee078da..1fdd740 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,6 +47,10 @@ shadow_unrelated = "deny" # documented on the corresponding unsafe implementations. non_send_fields_in_send_ty = { level = "allow", priority = 1 } +# This conflicts with rustc's `unreachable_pub` for crate-visible items inside +# private modules: https://github.com/rust-lang/rust-clippy/issues/5369 +redundant_pub_crate = { level = "allow", priority = 1 } + # Force using expect and providing a reason allow_attributes = "deny" allow_attributes_without_reason = "deny"