diff --git a/Cargo.toml b/Cargo.toml index 82cdd037..6a521ab1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,9 @@ members = [ ] resolver = "2" +[workspace.lints.clippy] +needless_lifetimes = "allow" + [patch.crates-io] #wrapped2d = { git = "https://github.com/Bastacyclop/rust_box2d.git" } #xurdf = { path = "../xurdf/xurdf" } diff --git a/crates/rapier2d/Cargo.toml b/crates/rapier2d/Cargo.toml index f854cb4d..b131469a 100644 --- a/crates/rapier2d/Cargo.toml +++ b/crates/rapier2d/Cargo.toml @@ -25,6 +25,7 @@ maintenance = { status = "actively-developed" } rust.unexpected_cfgs = { level = "warn", check-cfg = [ 'cfg(feature, values("dim3", "f64"))', ] } +clippy = { needless_lifetimes = "allow" } [features] default = ["dim2", "f32"] diff --git a/crates/rapier3d/Cargo.toml b/crates/rapier3d/Cargo.toml index bc048c14..bedf1988 100644 --- a/crates/rapier3d/Cargo.toml +++ b/crates/rapier3d/Cargo.toml @@ -25,6 +25,8 @@ maintenance = { status = "actively-developed" } rust.unexpected_cfgs = { level = "warn", check-cfg = [ 'cfg(feature, values("dim2", "f64"))', ] } +clippy = { needless_lifetimes = "allow" } + [features] default = ["dim3", "f32"] diff --git a/crates/rapier_testbed2d-f64/Cargo.toml b/crates/rapier_testbed2d-f64/Cargo.toml index b3666d2d..2876e1dc 100644 --- a/crates/rapier_testbed2d-f64/Cargo.toml +++ b/crates/rapier_testbed2d-f64/Cargo.toml @@ -28,6 +28,7 @@ required-features = ["dim2"] rust.unexpected_cfgs = { level = "warn", check-cfg = [ 'cfg(feature, values("dim3", "f32"))', ] } +clippy = { needless_lifetimes = "allow" } [features] default = ["dim2"] @@ -66,6 +67,7 @@ puffin_egui = { version = "0.29", optional = true } bevy = { version = "0.15", default-features = false, features = [ "bevy_asset", "bevy_winit", + "bevy_window", "x11", "tonemapping_luts", "ktx2", @@ -80,6 +82,7 @@ bevy = { version = "0.15", default-features = false, features = [ bevy = { version = "0.15", default-features = false, features = [ "bevy_asset", "bevy_winit", + "bevy_window", "tonemapping_luts", "ktx2", "zstd", diff --git a/crates/rapier_testbed2d/Cargo.toml b/crates/rapier_testbed2d/Cargo.toml index 80f0d25c..dc4b854a 100644 --- a/crates/rapier_testbed2d/Cargo.toml +++ b/crates/rapier_testbed2d/Cargo.toml @@ -28,6 +28,7 @@ required-features = ["dim2"] rust.unexpected_cfgs = { level = "warn", check-cfg = [ 'cfg(feature, values("dim3", "f64"))', ] } +clippy = { needless_lifetimes = "allow" } [features] default = ["dim2"] @@ -66,6 +67,7 @@ puffin_egui = { version = "0.29", optional = true } bevy = { version = "0.15", default-features = false, features = [ "bevy_sprite", "bevy_winit", + "bevy_window", "x11", "tonemapping_luts", "ktx2", @@ -80,6 +82,7 @@ bevy = { version = "0.15", default-features = false, features = [ bevy = { version = "0.15", default-features = false, features = [ "bevy_sprite", "bevy_winit", + "bevy_window", "tonemapping_luts", "ktx2", "zstd", diff --git a/crates/rapier_testbed3d-f64/Cargo.toml b/crates/rapier_testbed3d-f64/Cargo.toml index 9595a4d4..35d128b6 100644 --- a/crates/rapier_testbed3d-f64/Cargo.toml +++ b/crates/rapier_testbed3d-f64/Cargo.toml @@ -31,6 +31,7 @@ rust.unexpected_cfgs = { level = "warn", check-cfg = [ # but easier to just ignore it here. 'cfg(feature, values("other-backends"))', ] } +clippy = { needless_lifetimes = "allow" } [features] default = ["dim3"] @@ -67,6 +68,7 @@ puffin_egui = { version = "0.29", optional = true, git = "https://github.com/Vri [target.'cfg(not(target_arch = "wasm32"))'.dependencies] bevy = { version = "0.15", default-features = false, features = [ "bevy_winit", + "bevy_window", "x11", "tonemapping_luts", "ktx2", @@ -80,6 +82,8 @@ bevy = { version = "0.15", default-features = false, features = [ [target.'cfg(target_arch = "wasm32")'.dependencies] bevy = { version = "0.15", default-features = false, features = [ "bevy_winit", + "bevy_window", + "bevy_window", "tonemapping_luts", "ktx2", "zstd", diff --git a/crates/rapier_testbed3d/Cargo.toml b/crates/rapier_testbed3d/Cargo.toml index b1619b24..ea9d218b 100644 --- a/crates/rapier_testbed3d/Cargo.toml +++ b/crates/rapier_testbed3d/Cargo.toml @@ -28,6 +28,7 @@ required-features = ["dim3"] rust.unexpected_cfgs = { level = "warn", check-cfg = [ 'cfg(feature, values("dim2", "f64"))', ] } +clippy = { needless_lifetimes = "allow" } [features] default = ["dim3"] diff --git a/examples2d/trimesh2.rs b/examples2d/trimesh2.rs index a295db55..a57c0fe0 100644 --- a/examples2d/trimesh2.rs +++ b/examples2d/trimesh2.rs @@ -143,7 +143,7 @@ pub struct PathConvIter<'a> { deferred: Option, } -impl<'l> Iterator for PathConvIter<'l> { +impl Iterator for PathConvIter<'_> { type Item = PathEvent; fn next(&mut self) -> Option { if self.deferred.is_some() {