From d94479f8d4ee1e1fcaceb8db47079d8311947b70 Mon Sep 17 00:00:00 2001 From: insideTheFlux Date: Mon, 2 Nov 2026 21:32:24 -0800 Subject: [PATCH] LR-PREF-DISPLAY: wincolor inherits the workspace lints `[lints] workspace = true` in place of its own tables, as CLAUDE.md asks of every new crate (CodeRabbit): it now also gets the workspace's cognitive_complexity, too_many_arguments and wildcard_imports denies. The workspace's unsafe_code is deny, not forbid, so the win32 module's #[allow(unsafe_code)] still applies, and an unsafe block anywhere else in the crate fails to compile. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CvoftKWm1wYSXdzRBwvFR3 --- crates/wincolor/Cargo.toml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/crates/wincolor/Cargo.toml b/crates/wincolor/Cargo.toml index d7b1c6e8df..8cf4739a11 100644 --- a/crates/wincolor/Cargo.toml +++ b/crates/wincolor/Cargo.toml @@ -5,15 +5,11 @@ edition.workspace = true license.workspace = true description = "LightCraft wincolor (L0): the colour profile Windows assigns to the monitor showing a window. One of the two crates allowed `unsafe` (Win32 calls)." -# Opts out of the workspace lints only to keep `unsafe_code = "deny"` overridable for the Win32 -# module below, as `crates/sysmem` does; every other crate root has `#![forbid(unsafe_code)]`. See +# The workspace lints: they deny `unsafe_code` (deny, not forbid), which the `win32` module in +# src/lib.rs allows for its Win32 calls; every other crate root has `#![forbid(unsafe_code)]`. See # AGENTS.md and craftrules standards/never-crash.md ("isolated helper library crate"). -[lints.rust] -unsafe_code = "deny" - -[lints.clippy] -dbg_macro = "warn" -todo = "warn" +[lints] +workspace = true [target.'cfg(windows)'.dependencies] windows-sys = { version = "0.61", features = [