We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9454d1 commit 8cb0285Copy full SHA for 8cb0285
src-tauri/src/main.rs
@@ -19,16 +19,16 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
19
let device_manager = Arc::new(DeviceManager::new());
20
// 创建应用状态
21
let app_state = commands::AppState {
22
- device_manager: device_manager.clone(),
+ device_manager: device_manager.clone(),
23
};
24
25
tauri::Builder::default()
26
.manage(app_state)
27
- .setup(|_app| {
+ .setup(|app| {
28
setup_logging().expect("Failed to setup logging");
29
#[cfg(debug_assertions)]
30
{
31
- let window = _app.get_window("main").unwrap();
+ let window = app.get_window("main").unwrap();
32
window.open_devtools();
33
}
34
Ok(())
0 commit comments