chore: clippy fixes

This commit is contained in:
Sébastien Crozet
2024-06-09 11:12:31 +02:00
committed by Sébastien Crozet
parent edaa36ac7e
commit ad960bf245
7 changed files with 16 additions and 12 deletions

View File

@@ -220,7 +220,7 @@ enum JointType {
impl JointType {
fn from_str(str: &str) -> Option<Self> {
match str.as_ref() {
match str {
"fixed" | "Fixed" => Some(Self::Fixed),
"continuous" | "Continuous" => Some(Self::Continuous),
"revolute" | "Revolute" => Some(Self::Revolute),
@@ -519,7 +519,7 @@ fn urdf_to_collider(
Some("stl") | Some("STL") => {
let full_path = mesh_dir.join(filename);
match rapier3d_stl::load_from_path(
&full_path,
full_path,
MeshConverter::TriMeshWithFlags(options.trimesh_flags),
scale,
) {