diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2025-11-19 13:23:01 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2025-11-20 13:55:16 +0100 |
| commit | e8deb49f724492b4331326fe232a0e0d8fbc8b16 (patch) | |
| tree | 89cc2554e5e04c0c8ababd13b0378c116ca0289a | |
| parent | b89cf7cab53c6844779e6a444612e6a134b488c3 (diff) | |
| download | mullvadvpn-e8deb49f724492b4331326fe232a0e0d8fbc8b16.tar.xz mullvadvpn-e8deb49f724492b4331326fe232a0e0d8fbc8b16.zip | |
Warn on `as *const T` that could be `&raw const`
| -rw-r--r-- | Cargo.toml | 1 | ||||
| -rw-r--r-- | test/Cargo.toml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml index af0550c5f3..f850df050e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,6 +79,7 @@ single_use_lifetimes = "warn" unused_async = "deny" undocumented_unsafe_blocks = "warn" implicit_clone = "warn" +borrow_as_ptr = "warn" [workspace.dependencies] dirs = "6.0.0" diff --git a/test/Cargo.toml b/test/Cargo.toml index fd2975aa9f..48ce860f9c 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -35,6 +35,7 @@ single_use_lifetimes = "warn" [workspace.lints.clippy] unused_async = "deny" implicit_clone = "warn" +borrow_as_ptr = "warn" [workspace.dependencies] dirs = "6.0.0" |
