fix clippy needless lifetimes (#769)
+ ignore them for bevy where we often want explicitness
This commit is contained in:
@@ -11,7 +11,7 @@ use na::{DVector, Matrix2};
|
||||
|
||||
use super::{TwoBodyConstraintElement, TwoBodyConstraintNormalPart};
|
||||
|
||||
impl<'a> AnyConstraintMut<'a, ContactConstraintTypes> {
|
||||
impl AnyConstraintMut<'_, ContactConstraintTypes> {
|
||||
pub fn remove_bias(&mut self) {
|
||||
match self {
|
||||
Self::OneBody(c) => c.remove_cfm_and_bias_from_rhs(),
|
||||
|
||||
@@ -18,7 +18,7 @@ pub(crate) trait PairInteraction {
|
||||
use crate::dynamics::RigidBodyType;
|
||||
|
||||
#[cfg(feature = "parallel")]
|
||||
impl<'a> PairInteraction for &'a mut ContactManifold {
|
||||
impl PairInteraction for &mut ContactManifold {
|
||||
fn body_pair(&self) -> (Option<RigidBodyHandle>, Option<RigidBodyHandle>) {
|
||||
(self.data.rigid_body1, self.data.rigid_body2)
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ use crate::dynamics::solver::joint_constraint::joint_constraint_builder::{
|
||||
|
||||
pub struct JointConstraintTypes;
|
||||
|
||||
impl<'a> AnyConstraintMut<'a, JointConstraintTypes> {
|
||||
impl AnyConstraintMut<'_, JointConstraintTypes> {
|
||||
pub fn remove_bias(&mut self) {
|
||||
match self {
|
||||
Self::OneBody(c) => c.remove_bias_from_rhs(),
|
||||
|
||||
Reference in New Issue
Block a user