chore: edition 2024

This commit is contained in:
Lucas Nogueira
2026-09-26 15:36:22 -03:00
parent b517cc7e85
commit 3d8a3c877b
100 changed files with 276 additions and 253 deletions
+2 -2
View File
@@ -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>(
+1 -1
View File
@@ -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;
+3 -3
View File
@@ -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<()> {
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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)?;