Fix clippy and enable clippy on CI

This commit is contained in:
Sébastien Crozet
2024-01-27 16:49:53 +01:00
committed by Sébastien Crozet
parent aef873f20e
commit da92e5c283
81 changed files with 420 additions and 468 deletions

View File

@@ -1,3 +1,5 @@
#![allow(clippy::bad_bit_mask)] // Clippy will complain about the bitmasks due to JointAxesMask::FREE_FIXED_AXES being 0.
use crate::dynamics::solver::MotorParameters;
use crate::dynamics::{FixedJoint, MotorModel, PrismaticJoint, RevoluteJoint, RopeJoint};
use crate::math::{Isometry, Point, Real, Rotation, UnitVector, Vector, SPATIAL_DIM};
@@ -704,8 +706,8 @@ impl GenericJointBuilder {
}
}
impl Into<GenericJoint> for GenericJointBuilder {
fn into(self) -> GenericJoint {
self.0
impl From<GenericJointBuilder> for GenericJoint {
fn from(val: GenericJointBuilder) -> GenericJoint {
val.0
}
}