Skip to content

Commit

Permalink
fix[docs]: Fix import in the Plugin example (#2224)
Browse files Browse the repository at this point in the history
  • Loading branch information
RealDrPuc committed Jul 23, 2021
1 parent 83786ce commit 3f84381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage/guides/plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit 3f84381

Please sign in to comment.