浏览代码

chore: fix clippy false positive (#9329)

Amr Bashir 1 年之前
父节点
当前提交
fe6f81fa88
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      core/tauri-utils/src/platform/starting_binary.rs

+ 2 - 0
core/tauri-utils/src/platform/starting_binary.rs

@@ -41,6 +41,8 @@ impl StartingBinary {
   ///
   /// Because [`Error`] is not clone-able, it is recreated instead.
   pub(super) fn cloned(&self) -> Result<PathBuf> {
+    // false positive
+    #[allow(clippy::useless_asref)]
     self
       .0
       .as_ref()