Skip to content

Commit

Permalink
fix warning in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Nov 13, 2023
1 parent 48162b3 commit a9c4cd7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions examples/api/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ rust-version = { workspace = true }
license = "Apache-2.0 OR MIT"

[lib]
name = "api_lib"
crate-type = [ "staticlib", "cdylib", "rlib" ]

[build-dependencies]
Expand Down
5 changes: 0 additions & 5 deletions examples/api/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

#![cfg_attr(
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
)]

mod cmd;
#[cfg(desktop)]
mod tray;
Expand Down
3 changes: 1 addition & 2 deletions examples/api/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

fn main() {
#[cfg(desktop)]
api::run();
api_lib::run();
}

0 comments on commit a9c4cd7

Please sign in to comment.