Skip to content

Commit ca0492d

Browse files
committed
fix: unused import and variable warnings in tauri lib
1 parent 55fe37d commit ca0492d

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ members = [
99
]
1010

1111
[workspace.package]
12-
version = "0.25.0"
12+
version = "0.25.1"
1313
edition = "2024"
1414
rust-version = "1.85"
1515
license = "MIT"
@@ -20,10 +20,10 @@ categories = ["game-development", "multimedia::images", "command-line-utilitie
2020

2121
[workspace.dependencies]
2222
# Internal crates
23-
fastpack-core = { path = "crates/fastpack-core", version = "0.25.0" }
24-
fastpack-formats = { path = "crates/fastpack-formats", version = "0.25.0" }
25-
fastpack-compress = { path = "crates/fastpack-compress", version = "0.25.0" }
26-
fastpack-tauri = { path = "crates/fastpack-tauri/src-tauri", version = "0.25.0" }
23+
fastpack-core = { path = "crates/fastpack-core", version = "0.25.1" }
24+
fastpack-formats = { path = "crates/fastpack-formats", version = "0.25.1" }
25+
fastpack-compress = { path = "crates/fastpack-compress", version = "0.25.1" }
26+
fastpack-tauri = { path = "crates/fastpack-tauri/src-tauri", version = "0.25.1" }
2727

2828
# Error handling
2929
thiserror = "2"

crates/fastpack-tauri/src-tauri/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ pub mod worker;
88

99
use std::path::PathBuf;
1010

11-
use tauri::Manager;
12-
1311
/// Launch the Tauri GUI window.
1412
///
1513
/// `project_path` is the optional `.fpsheet` file to open on startup.
@@ -42,10 +40,11 @@ pub fn run(project_path: Option<PathBuf>) -> anyhow::Result<()> {
4240
commands::cli::install_cli,
4341
commands::cli::check_cli_installed,
4442
])
45-
.setup(|app| {
43+
.setup(|_app| {
4644
#[cfg(debug_assertions)]
4745
{
48-
let window = app.get_webview_window("main").unwrap();
46+
use tauri::Manager;
47+
let window = _app.get_webview_window("main").unwrap();
4948
window.open_devtools();
5049
}
5150
Ok(())

0 commit comments

Comments
 (0)