Skip to content

Commit

Permalink
fix: use correct rust syntax for cfg on expressions (#314)
Browse files Browse the repository at this point in the history
* fix: use correct rust syntax for cfg on expressions

* more fixes

* correct crate name

* revert some changes
  • Loading branch information
amr-crabnebula authored Jun 26, 2024
1 parent cdd41cd commit c1b79fd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!())
Expand Down
6 changes: 4 additions & 2 deletions crates/devtools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!())
Expand Down
6 changes: 4 additions & 2 deletions crates/v1/crates/devtools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!())
Expand Down

0 comments on commit c1b79fd

Please sign in to comment.