From 6511e47b3e191291ce64279631b84a705f7ae827 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Mon, 14 Aug 2023 14:10:50 -0300 Subject: [PATCH] fix updater doctests [skip ci] --- plugins/updater/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/updater/src/lib.rs b/plugins/updater/src/lib.rs index cb239102..0475620d 100644 --- a/plugins/updater/src/lib.rs +++ b/plugins/updater/src/lib.rs @@ -41,7 +41,7 @@ pub trait UpdaterExt { /// use tauri_plugin_updater::UpdaterExt; /// tauri::Builder::default() /// .setup(|app| { - /// let handle = app.handle(); + /// let handle = app.handle().clone(); /// tauri::async_runtime::spawn(async move { /// let response = handle.updater_builder().build().unwrap().check().await; /// }); @@ -58,7 +58,7 @@ pub trait UpdaterExt { /// use tauri_plugin_updater::UpdaterExt; /// tauri::Builder::default() /// .setup(|app| { - /// let handle = app.handle(); + /// let handle = app.handle().clone(); /// tauri::async_runtime::spawn(async move { /// let response = handle.updater().unwrap().check().await; /// });