deny unsafe_code

This commit is contained in:
widberg 2026-07-05 14:24:06 -04:00
parent a91aab85bc
commit 1cee9f567c
2 changed files with 9 additions and 0 deletions

View file

@ -10,6 +10,9 @@ repository = "https://github.com/widberg/bff"
edition = "2024"
rust-version = "1.88.0"
[workspace.lints.rust]
unsafe_code = "deny"
[workspace.lints.clippy]
allow_attributes = "warn"
assigning_clones = "warn"

View file

@ -1,3 +1,9 @@
#![expect(
unsafe_code,
reason = "ambient NameContext requires storing lifetime-erased borrows in a thread-local; \
guarded by runtime borrow-state + LIFO Drop discipline. See module tests."
)]
use std::cell::{Cell, RefCell};
use std::ptr::NonNull;