fix[docs]: Fix import in the Plugin example (#2224)

This commit is contained in:
Joaquín
2021-07-23 08:44:17 -03:00
committed by GitHub
parent 83786ce8a4
commit 3f84381ea9

View File

@@ -17,7 +17,7 @@ Plugins allow you to hook into the Tauri application lifecycle and introduce new
To write a plugin you just need to implement the `tauri::plugin::Plugin` trait:
```rust
use tauri::{plugin::{Plugin, Result as PluginResult}, runtime::Runtime, PageLoadPayload, Window, Invoke, App};
use tauri::{plugin::{Plugin, Result as PluginResult}, Runtime, PageLoadPayload, Window, Invoke, App};
struct MyAwesomePlugin<R: Runtime> {
invoke_handler: Box<dyn Fn(Invoke<R>) + Send + Sync>,