summaryrefslogtreecommitdiffstats
path: root/core/src/core_shapes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/core_shapes.rs')
-rw-r--r--core/src/core_shapes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/core_shapes.rs b/core/src/core_shapes.rs
index c3d3cae..805d82e 100644
--- a/core/src/core_shapes.rs
+++ b/core/src/core_shapes.rs
@@ -30,7 +30,7 @@ pub struct Rectangle {}
30 30
31impl CoreShape for Rectangle { 31impl CoreShape for Rectangle {
32 fn to_render(&self, _model: &dyn SolverModel) -> Option<Box<dyn Render>> { 32 fn to_render(&self, _model: &dyn SolverModel) -> Option<Box<dyn Render>> {
33 Some(Box::new(self.clone())) 33 Some(Box::new(*self))
34 } 34 }
35} 35}
36 36