Skip to content

Commit ecfb98b

Browse files
committed
lint 4
1 parent ea50543 commit ecfb98b

File tree

2 files changed

+4
-6
lines changed
  • apps

2 files changed

+4
-6
lines changed

apps/oneclient/desktop/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
132132
#[allow(unused_variables)]
133133
let app_handle = handle.clone();
134134
tokio::task::spawn(async move {
135-
if let Ok(state) = State::get().await {
136-
let _settings = state.settings.read().await;
135+
if State::get().await.is_ok() {
137136
// native_window_frame=true means use native decorations
138137
// native_window_frame=false means use custom frame (no decorations)
139138
#[cfg(target_os = "macos")]

apps/onelauncher/desktop/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
131131
let app_handle = handle.clone();
132132
tokio::task::spawn(async move {
133133
if let Ok(state) = State::get().await {
134-
let _settings = state.settings.read().await;
134+
#[allow(unused_variables)]
135+
let settings = state.settings.read().await;
135136
// native_window_frame=true means use native decorations
136137
// native_window_frame=false means use custom frame (no decorations)
137138
#[cfg(target_os = "macos")]
@@ -171,9 +172,7 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
171172
}
172173

173174
#[cfg(not(target_os = "macos"))]
174-
win_clone
175-
.set_decorations(_settings.native_window_frame)
176-
.ok();
175+
win_clone.set_decorations(settings.native_window_frame).ok();
177176
}
178177
win_clone.show().ok();
179178
});

0 commit comments

Comments
 (0)