소스 검색

fix: fix new clippy errors

amrbashir 1 년 전
부모
커밋
2efa303b20
4개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 2
      core/tauri/src/menu/mod.rs
  2. 0 2
      core/tauri/src/tray/mod.rs
  3. 0 1
      core/tauri/src/vibrancy/windows.rs
  4. 1 0
      tooling/bundler/src/bundle/path_utils.rs

+ 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,
 }