From c44777003bd40282f0a7a7a04eeec8369b5b8fca Mon Sep 17 00:00:00 2001 From: YuKun Liu Date: Wed, 30 Nov 2022 09:31:42 -0800 Subject: [PATCH] fix: some warning --- src/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 5d192dfc0..2caa20b90 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -8,7 +8,7 @@ use cargo_metadata::{diagnostic::Diagnostic, Message}; use indicatif::{ProgressBar, ProgressStyle}; use serde::Serialize; use std::{ - fs::{copy, create_dir_all, remove_dir_all, File}, + fs::{copy, create_dir_all, File}, io::Read, panic, path::PathBuf, @@ -241,7 +241,7 @@ pub fn build(config: &CrateConfig, quiet: bool) -> Result { }) } -pub fn build_desktop(config: &CrateConfig, is_serve: bool) -> Result<()> { +pub fn build_desktop(config: &CrateConfig, _is_serve: bool) -> Result<()> { log::info!("🚅 Running build [Desktop] command..."); let ignore_files = build_assets(config)?;