mirror of
https://github.com/widberg/bff
synced 2026-08-23 14:26:03 -04:00
deny unsafe_code
This commit is contained in:
parent
a91aab85bc
commit
1cee9f567c
2 changed files with 9 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue