diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/geometry/contact_generator/pfm_pfm_contact_generator.rs | 2 | ||||
| -rw-r--r-- | src/geometry/polyhedron_feature3d.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/geometry/contact_generator/pfm_pfm_contact_generator.rs b/src/geometry/contact_generator/pfm_pfm_contact_generator.rs index e18e77f..a9906cb 100644 --- a/src/geometry/contact_generator/pfm_pfm_contact_generator.rs +++ b/src/geometry/contact_generator/pfm_pfm_contact_generator.rs @@ -138,7 +138,7 @@ impl MaybeSerializableData for PfmPfmContactManifoldGeneratorWorkspace { )) } - fn clone(&self) -> Box<MaybeSerializableData> { + fn clone_dyn(&self) -> Box<MaybeSerializableData> { Box::new(self.clone()) } } diff --git a/src/geometry/polyhedron_feature3d.rs b/src/geometry/polyhedron_feature3d.rs index d7f0a23..5ad62df 100644 --- a/src/geometry/polyhedron_feature3d.rs +++ b/src/geometry/polyhedron_feature3d.rs @@ -5,7 +5,7 @@ use crate::utils::WBasis; use na::Point2; use ncollide::shape::Segment; -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct PolyhedronFace { pub vertices: [Point<f32>; 4], pub vids: [u8; 4], // Feature ID of the vertices. |
