add lints

This commit is contained in:
griffi-gh 2024-05-03 01:48:12 +02:00
parent 6a218352ab
commit 80abfc2768

View file

@ -1,8 +1,14 @@
//TODO move lints to workspace Cargo.toml
#![allow(
clippy::too_many_arguments, // allowed because systems often need a lot of argumentss
clippy::enum_variant_names,
clippy::type_complexity
)]
#![forbid(
static_mut_refs,
unsafe_op_in_unsafe_fn,
rust_2024_compatibility,
)]
use shipyard::{
World, Workload, IntoWorkload,