From fa298c41e07c1d9f71956156b6335b438758d691 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Wed, 11 Dec 2024 17:18:34 +0100 Subject: [PATCH] Hide install() from clippy Not checkable because it would require sphinx --- src/bin/fish.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/fish.rs b/src/bin/fish.rs index 1a04ed236..4d1ff2f34 100644 --- a/src/bin/fish.rs +++ b/src/bin/fish.rs @@ -78,7 +78,12 @@ const SYSCONF_DIR: &str = env!("SYSCONFDIR"); const BIN_DIR: &str = env!("BINDIR"); #[cfg(feature = "installable")] +#[allow(unused_variables)] +#[allow(unreachable_code)] fn install(confirm: bool) { + // Disable for clippy because otherwise it would require sphinx + #[cfg(clippy)] + return; use rust_embed::RustEmbed; #[derive(RustEmbed)]