Fix warnings

This commit is contained in:
Caelan
2024-10-01 10:43:23 -06:00
parent 2b3406208e
commit 433690875d
4 changed files with 5 additions and 9 deletions

View File

@@ -1,11 +1,8 @@
use crate::shared::{
self,
dialogs,
};
use crate::shared::dialogs;
use anyhow::{bail, Result};
use std::os::unix::fs::PermissionsExt;
use std::{fs, path::PathBuf, process::Command};
use velopack::{bundle, locator::VelopackLocator};
use std::os::unix::fs::PermissionsExt;
pub fn apply_package_impl<'a>(locator: &VelopackLocator, pkg: &PathBuf, _runhooks: bool) -> Result<VelopackLocator> {
// on linux, the current "dir" is actually an AppImage file which we need to replace.

View File

@@ -1,5 +1,5 @@
use anyhow::{anyhow, bail, Result};
use std::{path::Path, path::PathBuf, process::Command as Process, time::Duration};
use std::{process::Command as Process, time::Duration};
use velopack::locator::VelopackLocator;
pub fn wait_for_pid_to_exit(pid: u32, ms_to_wait: u32) -> Result<()> {

View File

@@ -17,7 +17,7 @@ use zip::ZipArchive;
use crate::{Error, util};
#[cfg(not(target_os = "windows"))]
#[cfg(target_os = "macos")]
use std::os::unix::fs::PermissionsExt;
#[cfg(target_os = "windows")]