mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Fix warnings
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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<()> {
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user