mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
fix: mobile clippy warnings
This commit is contained in:
@@ -5,15 +5,12 @@
|
||||
use std::{
|
||||
collections::HashMap,
|
||||
ffi::OsString,
|
||||
io::Cursor,
|
||||
path::{Path, PathBuf},
|
||||
str::FromStr,
|
||||
sync::Arc,
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
use std::ffi::OsStr;
|
||||
|
||||
use base64::Engine;
|
||||
use futures_util::StreamExt;
|
||||
@@ -26,6 +23,10 @@ use reqwest::{
|
||||
};
|
||||
use semver::Version;
|
||||
use serde::{Deserialize, Deserializer, Serialize, de::Error as DeError};
|
||||
#[cfg(windows)]
|
||||
use std::ffi::OsStr;
|
||||
#[cfg(desktop)]
|
||||
use std::io::Cursor;
|
||||
use tauri::{
|
||||
AppHandle, Resource, Runtime,
|
||||
utils::{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#![cfg(any(target_os = "linux", target_os = "macos", windows))]
|
||||
#![allow(dead_code, unused_imports)]
|
||||
|
||||
use std::{
|
||||
@@ -376,7 +377,7 @@ fn stage_app_under_test(root_dir: &Path, target: &str, bundle_target: BundleTarg
|
||||
)
|
||||
});
|
||||
|
||||
return staged;
|
||||
staged
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#![cfg(any(target_os = "linux", target_os = "macos", windows))]
|
||||
#![allow(dead_code, unused_imports)]
|
||||
|
||||
use std::{
|
||||
|
||||
Reference in New Issue
Block a user