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; /// });