Skip to content

Commit b8f02dd

Browse files
{"schema":"cmsg/1","type":"fix","scope":"linux","summary":"fix Linux app lint imports and attrs","intent":"clear the latest Ubuntu lint failures by making VecDeque available to the cross-platform settings path while hiding macOS-only sync imports and removing a Linux-only unused mut binding","impact":"the app crate now compiles cleanly under Linux clippy without changing runtime behavior on either platform","breaking":false,"risk":"low","refs":[]}
1 parent 4d14aed commit b8f02dd

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

apps/rsnap/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#[cfg(target_os = "macos")]
21
use std::collections::VecDeque;
32
#[cfg(target_os = "macos")]
43
use std::ffi::c_void;
4+
#[cfg(target_os = "macos")]
55
use std::sync::{
66
Arc, Mutex,
77
atomic::{AtomicBool, AtomicU64, Ordering},

apps/rsnap/src/settings_window.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,23 +103,21 @@ pub struct SettingsWindow {
103103
}
104104
impl SettingsWindow {
105105
pub fn open(event_loop: &ActiveEventLoop) -> Result<Self> {
106-
let mut attrs = Window::default_attributes()
106+
let attrs = Window::default_attributes()
107107
.with_title("Settings")
108108
.with_inner_size(LogicalSize::new(520.0, 360.0))
109109
.with_resizable(false)
110110
.with_visible(true);
111-
112111
#[cfg(target_os = "macos")]
113-
{
112+
let attrs = {
114113
use winit::platform::macos::WindowAttributesExtMacOS;
115114

116-
attrs = attrs
115+
attrs
117116
.with_titlebar_transparent(true)
118117
.with_title_hidden(true)
119118
.with_fullsize_content_view(true)
120-
.with_movable_by_window_background(false);
121-
}
122-
119+
.with_movable_by_window_background(false)
120+
};
123121
let window = event_loop.create_window(attrs).wrap_err("create settings window")?;
124122
let window = std::sync::Arc::new(window);
125123
let (gpu, surface, surface_config) =

0 commit comments

Comments
 (0)