fix: fix new clippy errors (#10054)

* fix: fix new clippy errors

* more clippy
This commit is contained in:
Amr Bashir 2024-06-24 20:54:43 +03:00 committed by GitHub
parent cee0bfcd6c
commit 6c9e24a683
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 2 additions and 5 deletions

View File

@ -2,8 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
#![cfg(desktop)]
//! Menu types and utilities.
mod builders;

View File

@ -2,8 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
#![cfg(all(desktop, feature = "tray-icon"))]
//! Tray icon types and utilities.
pub(crate) mod plugin;

View File

@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
#![cfg(windows)]
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
#![allow(clippy::upper_case_acronyms)]

View File

@ -18,6 +18,7 @@ pub struct DirOpts {
pub struct FileOpts {
pub overwrite: bool,
pub skip: bool,
#[allow(dead_code)]
pub buffer_size: usize,
}

View File

@ -43,6 +43,7 @@ impl Settings {
}
}
#[cfg_attr(not(windows), allow(dead_code))]
pub struct SignParams {
pub product_name: String,
pub digest_algorithm: String,