diff --git a/Cargo.toml b/Cargo.toml index 34dc302b..a297a9b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,14 +2,6 @@ members = ["bevy_rapier2d", "bevy_rapier3d", "bevy_rapier_benches3d"] resolver = "2" -[workspace.lints] -rust.unexpected_cfgs = { level = "warn", check-cfg = [ - 'cfg(feature, values("dim2", "dim3"))', -] } - -[workspace.lints.clippy] -needless_lifetimes = "allow" - [profile.dev] # Use slightly better optimization by default, as examples otherwise seem laggy. opt-level = 1 diff --git a/bevy_rapier2d/Cargo.toml b/bevy_rapier2d/Cargo.toml index ca4a58cd..4a626709 100644 --- a/bevy_rapier2d/Cargo.toml +++ b/bevy_rapier2d/Cargo.toml @@ -18,7 +18,10 @@ path = "../src/lib.rs" required-features = ["dim2"] [lints] -workspace = true +rust.unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(feature, values("dim3"))', +] } +clippy = { needless_lifetimes = "allow" } [features] default = ["dim2", "async-collider", "debug-render-2d"] diff --git a/bevy_rapier3d/Cargo.toml b/bevy_rapier3d/Cargo.toml index 7ec536f0..3ef14e83 100644 --- a/bevy_rapier3d/Cargo.toml +++ b/bevy_rapier3d/Cargo.toml @@ -18,7 +18,10 @@ path = "../src/lib.rs" required-features = ["dim3"] [lints] -workspace = true +rust.unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(feature, values("dim2"))', +] } +clippy = { needless_lifetimes = "allow" } [features] default = ["dim3", "async-collider", "debug-render-3d"]