Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

Clippy passes on macOS and Windows again: the options rebinding for the XWayland default is compiled only where the Linux block that mutates it is, instead of leaving an unused mut that -D warnings rejects (#75)

CypherNaugh_0xa0f456d4f41e
diff --git a/apps/solvecraft/src/main.rs b/apps/solvecraft/src/main.rs
index 934e5e5f40..21132f5489 100644
--- a/apps/solvecraft/src/main.rs
+++ b/apps/solvecraft/src/main.rs
@@ -132,6 +132,7 @@ fn main() -> eframe::Result {
multisampling: samples,
..Default::default()
};
+ #[cfg(all(unix, not(target_os = "macos")))]
let mut options = options;
#[cfg(all(unix, not(target_os = "macos")))]
// winit has no file drag-and-drop on Wayland (only on X11), so dropping files from the file