Explorar o código

fix: fix new clippy errors

amrbashir hai 1 ano
pai
achega
2efa303b20

+ 0 - 2
core/tauri/src/menu/mod.rs

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

+ 0 - 2
core/tauri/src/tray/mod.rs

@@ -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;

+ 0 - 1
core/tauri/src/vibrancy/windows.rs

@@ -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)]

+ 1 - 0
tooling/bundler/src/bundle/path_utils.rs

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