From 6ae98c4a4a9f2f5b83506048552c3d622b0ebc1f Mon Sep 17 00:00:00 2001 From: John Carmack Date: Wed, 4 Dec 2024 10:58:32 -0800 Subject: [PATCH] Tell clippy to allow unused_imports for indirectly used std::io::Write in linux bundler; erase empty else branch causing warning in macOS bundler --- crates/tauri-bundler/src/bundle/linux/appimage.rs | 1 + crates/tauri-bundler/src/bundle/macos/dmg/mod.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tauri-bundler/src/bundle/linux/appimage.rs b/crates/tauri-bundler/src/bundle/linux/appimage.rs index 02fe710d394a..b9c688d1e945 100644 --- a/crates/tauri-bundler/src/bundle/linux/appimage.rs +++ b/crates/tauri-bundler/src/bundle/linux/appimage.rs @@ -10,6 +10,7 @@ use crate::{ Settings, }; use anyhow::Context; +#[allow(unused_imports)] use std::{ fs, io::Write, diff --git a/crates/tauri-bundler/src/bundle/macos/dmg/mod.rs b/crates/tauri-bundler/src/bundle/macos/dmg/mod.rs index 7df50a055276..747b3963c09c 100644 --- a/crates/tauri-bundler/src/bundle/macos/dmg/mod.rs +++ b/crates/tauri-bundler/src/bundle/macos/dmg/mod.rs @@ -178,7 +178,6 @@ pub fn bundle_project(settings: &Settings, bundles: &[Bundle]) -> crate::Result< if let Some(value) = env::var_os("CI") { if value == "true" { bundle_dmg_cmd.arg("--skip-jenkins"); - } else { } } }