mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
chore: edition 2024
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use tauri::{
|
||||
ipc::{CommandScope, GlobalScope},
|
||||
AppHandle, Runtime,
|
||||
ipc::{CommandScope, GlobalScope},
|
||||
};
|
||||
|
||||
use crate::{scope::Scope, Error, OpenerExt};
|
||||
use crate::{Error, OpenerExt, scope::Scope};
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn open_url<R: Runtime>(
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
use std::path::Path;
|
||||
|
||||
use tauri::{plugin::TauriPlugin, Manager, Runtime};
|
||||
use tauri::{Manager, Runtime, plugin::TauriPlugin};
|
||||
|
||||
#[cfg(mobile)]
|
||||
use tauri::plugin::PluginHandle;
|
||||
|
||||
@@ -93,18 +93,18 @@ mod imp {
|
||||
|
||||
use windows::Win32::UI::Shell::Common::ITEMIDLIST;
|
||||
use windows::{
|
||||
core::{w, HSTRING, PCWSTR},
|
||||
Win32::{
|
||||
Foundation::ERROR_FILE_NOT_FOUND,
|
||||
System::Com::CoInitialize,
|
||||
UI::{
|
||||
Shell::{
|
||||
ILCreateFromPathW, ILFree, SHOpenFolderAndSelectItems, ShellExecuteExW,
|
||||
SHELLEXECUTEINFOW,
|
||||
ILCreateFromPathW, ILFree, SHELLEXECUTEINFOW, SHOpenFolderAndSelectItems,
|
||||
ShellExecuteExW,
|
||||
},
|
||||
WindowsAndMessaging::SW_SHOWNORMAL,
|
||||
},
|
||||
},
|
||||
core::{HSTRING, PCWSTR, w},
|
||||
};
|
||||
|
||||
pub fn reveal_items_in_dir(paths: &[PathBuf]) -> crate::Result<()> {
|
||||
|
||||
@@ -8,9 +8,9 @@ use std::{
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
use tauri::{ipc::ScopeObject, utils::acl::Value, AppHandle, Manager, Runtime};
|
||||
use tauri::{AppHandle, Manager, Runtime, ipc::ScopeObject, utils::acl::Value};
|
||||
|
||||
use crate::{scope_entry::EntryRaw, Error};
|
||||
use crate::{Error, scope_entry::EntryRaw};
|
||||
|
||||
pub use crate::scope_entry::Application;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ use std::{
|
||||
path::{Component, Path, PathBuf, Prefix, PrefixComponent},
|
||||
};
|
||||
|
||||
use windows::{core::HSTRING, Win32::Storage::FileSystem::GetFullPathNameW};
|
||||
use windows::{Win32::Storage::FileSystem::GetFullPathNameW, core::HSTRING};
|
||||
|
||||
pub fn absolute_and_check_exists(path: &Path) -> io::Result<PathBuf> {
|
||||
let path = absolute(path)?;
|
||||
|
||||
Reference in New Issue
Block a user