Skip to content

Commit

Permalink
suppress needless lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Dec 2, 2024
1 parent f8a3c49 commit fa753e0
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
1 change: 1 addition & 0 deletions crates/rapier2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 2 additions & 0 deletions crates/rapier3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
3 changes: 3 additions & 0 deletions crates/rapier_testbed2d-f64/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions crates/rapier_testbed2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions crates/rapier_testbed3d-f64/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions crates/rapier_testbed3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion examples2d/trimesh2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub struct PathConvIter<'a> {
deferred: Option<PathEvent>,
}

impl<'l> Iterator for PathConvIter<'l> {
impl Iterator for PathConvIter<'_> {
type Item = PathEvent;
fn next(&mut self) -> Option<PathEvent> {
if self.deferred.is_some() {
Expand Down

0 comments on commit fa753e0

Please sign in to comment.