Skip to content

Commit 055ed70

Browse files
author
Kalju Randjärv
committed
fix accidental hwnd_param change, lint and format
1 parent cece5e5 commit 055ed70

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src-tauri/src/media_controls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn init(callback: MediaControlCallback, hwnd_param: Option<*mut std::ffi::c_
3434
#[cfg(target_os = "windows")]
3535
let hwnd = {
3636
// On Windows, MediaControls requires a valid HWND
37-
if _hwnd.is_none() {
37+
if hwnd_param.is_none() {
3838
log::error!("[MediaControls] Disabled on Windows (no HWND available)");
3939
return;
4040
}

src-tauri/src/sendspin/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,13 @@ pub async fn start(config: SendspinConfig) -> Result<String, String> {
277277

278278
match result {
279279
Ok(()) => {
280-
281280
log::warn!("[Sendspin] Disconnected, reconnecting in {:?}...", backoff);
282281
}
283282
Err(e) => {
284283
log::error!(
285284
"[Sendspin] Client error: {}, reconnecting in {:?}...",
286-
e, backoff
285+
e,
286+
backoff
287287
);
288288
}
289289
}

0 commit comments

Comments
 (0)