diff options
author | Minijackson <minijackson@riseup.net> | 2022-12-25 15:46:31 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2022-12-25 15:46:31 +0100 |
commit | 30f7d39ca2ed4590b5d356b1a4c024d11156a383 (patch) | |
tree | 115d8af6f02ec6d42e0a794ac57c391f3d10d6f7 /core/src/core_shapes.rs | |
parent | 92a02c34628343153b33602eae00cef46e28d191 (diff) | |
download | diaphragm-30f7d39ca2ed4590b5d356b1a4c024d11156a383.tar.gz diaphragm-30f7d39ca2ed4590b5d356b1a4c024d11156a383.zip |
WIP before core rewrite
Diffstat (limited to 'core/src/core_shapes.rs')
-rw-r--r-- | core/src/core_shapes.rs | 2 |
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 | ||
31 | impl CoreShape for Rectangle { | 31 | impl 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 | ||