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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01CvoftKWm1wYSXdzRBwvFR3
This commit is contained in:
insideTheFluxandClaude Opus 5.5 committed 2026-11-02 21:32:24 -08:00
1 parent 76f3972484
commit d94479f8d4
1 file changed
+4 -8
+4 -8
View File
@@ -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 = [