Skip to content

Commit 55ca389

Browse files
committed
Clean up
1 parent ebcd3b9 commit 55ca389

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

plugins/recent-doc/src/commands.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// SPDX-License-Identifier: MIT
44

55
use crate::error::Result;
6-
#[allow(unused_imports)]
76
use std::fs;
87
use tauri::command;
98

@@ -28,7 +27,6 @@ use {
2827
};
2928

3029
#[command]
31-
/// add recent
3230
pub(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>> {
140138
fn 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()?;

0 commit comments

Comments
 (0)