From 953dccb545006480e8436b02f4b3199e6ac9986c Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Wed, 4 Dec 2024 10:15:49 +0100 Subject: [PATCH] Fix CI (#604) ignore doc for tests + ignore lifetime ellision --- Cargo.toml | 3 +++ src/plugin/systems/collider.rs | 1 + src/plugin/systems/mod.rs | 1 + 3 files changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 684265ff..c112b763 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,9 @@ 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/src/plugin/systems/collider.rs b/src/plugin/systems/collider.rs index 7d094f0d..42250ffb 100644 --- a/src/plugin/systems/collider.rs +++ b/src/plugin/systems/collider.rs @@ -573,6 +573,7 @@ pub fn update_colliding_entities( } #[cfg(test)] +#[allow(missing_docs)] pub mod test { #[test] #[cfg(all(feature = "dim3", feature = "async-collider"))] diff --git a/src/plugin/systems/mod.rs b/src/plugin/systems/mod.rs index b1cc80f6..4905deeb 100644 --- a/src/plugin/systems/mod.rs +++ b/src/plugin/systems/mod.rs @@ -69,6 +69,7 @@ pub fn step_simulation( } #[cfg(test)] +#[allow(missing_docs)] pub mod tests { use bevy::{ asset::AssetPlugin,