Skip to content

Commit 5161b39

Browse files
Legend-MasterKokoro2336
authored andcommitted
Fix unused variable
1 parent 2e1c583 commit 5161b39

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/recent-doc/src/commands.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ impl Drop for ComGuard {
5353
}
5454

5555
#[command]
56-
pub(crate) fn add_recent_document<R: Runtime>(app: AppHandle<R>, _path: &str) -> Result<()> {
56+
pub(crate) fn add_recent_document<R: Runtime>(_app: AppHandle<R>, _path: &str) -> Result<()> {
5757
#[cfg(target_os = "windows")]
5858
unsafe {
5959
let _com_guard = ComGuard::new();
6060

61-
let app_id = &app.config().identifier;
61+
let app_id = &_app.config().identifier;
6262
let app_id_hstring = HSTRING::from(app_id);
6363

6464
let path_hstring = HSTRING::from(_path);

0 commit comments

Comments
 (0)