Skip to content

Commit bc47cae

Browse files
committed
style: rustfmt (import order, blank lines, chain wrap)
1 parent 82c6566 commit bc47cae

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/hotkeys.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ pub fn poll_hotkey_event() -> Option<GlobalHotKeyEvent> {
195195
GlobalHotKeyEvent::receiver().try_recv().ok()
196196
}
197197

198-
199198
#[cfg(test)]
200199
mod tests {
201200
use super::*;

src/win_ops.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::state::HiddenWindow;
2-
use std::path::PathBuf;
32
use anyhow::Result;
3+
use std::path::PathBuf;
44
use windows::Win32::Foundation::{BOOL, HWND, LPARAM, TRUE};
55
use windows::Win32::UI::WindowsAndMessaging::*;
66

@@ -206,14 +206,15 @@ pub fn current_exe_path() -> String {
206206
String::from_utf16_lossy(&buf[..end])
207207
}
208208

209-
210209
// ── Crash recovery for hidden app windows ────────────────────────────────────
211210
// When windows are hidden we record their handles to a small file. A clean
212211
// restore deletes it; a crash leaves it, so the next launch (and the panic
213212
// hook) can re-show anything that was stranded.
214213

215214
fn recovery_path() -> Option<PathBuf> {
216-
crate::config::config_dir().ok().map(|d| d.join("hidden_windows.json"))
215+
crate::config::config_dir()
216+
.ok()
217+
.map(|d| d.join("hidden_windows.json"))
217218
}
218219

219220
// Save (or, when empty, delete) the recovery record of hidden windows.

0 commit comments

Comments
 (0)