File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33// SPDX-License-Identifier: MIT
44
55use crate :: error:: Result ;
6- #[ allow( unused_imports) ]
76use std:: fs;
87use tauri:: command;
98
2827} ;
2928
3029#[ command]
31- /// add recent
3230pub ( crate ) fn add_recent_document ( _path : & str ) -> Result < ( ) > {
3331 #[ cfg( target_os = "windows" ) ]
3432 unsafe {
@@ -140,8 +138,7 @@ pub(crate) fn get_recent_documents() -> Result<Vec<String>> {
140138fn resolve_shortcut ( lnk_path : & std:: path:: Path ) -> Result < String > {
141139 unsafe {
142140 // Create IShellLink instance
143- let shell_link: IShellLinkW =
144- CoCreateInstance ( & ShellLink as * const _ , None , CLSCTX_INPROC_SERVER ) ?;
141+ let shell_link: IShellLinkW = CoCreateInstance ( & ShellLink , None , CLSCTX_INPROC_SERVER ) ?;
145142
146143 // Get IPersistFile interface
147144 let persist_file: IPersistFile = shell_link. cast ( ) ?;
You can’t perform that action at this time.
0 commit comments