diff --git a/README.md b/README.md index b3234c0c..50fb50fb 100644 --- a/README.md +++ b/README.md @@ -78,10 +78,12 @@ fn main() { #[cfg(debug_assertions)] // only enable instrumentation in development builds let devtools = tauri_plugin_devtools::init(); - let builder = tauri::Builder::default(); + let mut builder = tauri::Builder::default(); #[cfg(debug_assertions)] - let builder = builder.plugin(devtools); + { + builder = builder.plugin(devtools); + } builder .run(tauri::generate_context!()) diff --git a/crates/devtools/README.md b/crates/devtools/README.md index 68710c91..ec2bd22a 100644 --- a/crates/devtools/README.md +++ b/crates/devtools/README.md @@ -21,10 +21,12 @@ fn main() { #[cfg(debug_assertions)] // only enable instrumentation in development builds let devtools = tauri_plugin_devtools::init(); - let builder = tauri::Builder::default(); + let mut builder = tauri::Builder::default(); #[cfg(debug_assertions)] - let builder = builder.plugin(devtools); + { + builder = builder.plugin(devtools); + } builder .run(tauri::generate_context!()) diff --git a/crates/v1/crates/devtools/README.md b/crates/v1/crates/devtools/README.md index 3ba882a6..d988ef0a 100644 --- a/crates/v1/crates/devtools/README.md +++ b/crates/v1/crates/devtools/README.md @@ -21,10 +21,12 @@ fn main() { #[cfg(debug_assertions)] // only enable instrumentation in development builds let devtools = devtools::init(); - let builder = tauri::Builder::default(); + let mut builder = tauri::Builder::default(); #[cfg(debug_assertions)] - let builder = builder.plugin(devtools); + { + builder = builder.plugin(devtools); + } builder .run(tauri::generate_context!())