From ee34bee00fc3c0602eb2c02be9bf2cbd01e3b187 Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Mon, 29 Jan 2024 17:08:09 +0100 Subject: [PATCH] chore: Fix clippy lints for headless CLI build --- lib/cli/src/store.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/cli/src/store.rs b/lib/cli/src/store.rs index 10d35a13b39..34d61d0f429 100644 --- a/lib/cli/src/store.rs +++ b/lib/cli/src/store.rs @@ -1,10 +1,13 @@ //! Common module with common used structures across different //! commands. -#[allow(unused_imports)] +// NOTE: A lot of this code depends on feature flags. +// To not go crazy with annotations, some lints are disablefor the whole +// module. +#![allow(dead_code, unused_imports, unused_variables)] + use std::path::PathBuf; use std::string::ToString; -#[allow(unused_imports)] use std::sync::Arc; use anyhow::{bail, Result};