How can i improve my too object-oriented code?

Hi,
i'm at now working on a simulation of the Solar System in Rust. It's a port from a C++ version i have done at university two years ago, with a too much object-oriented approach.
Now, i've completed the simulation engine in Rust, before my next target of make the simulation graphical (with Piston ndr), i wanna ask to the community where the code can be rewritten in a more "Rustonical" style.

https://github.com/eisterman/Solar-System-Rust/tree/devel

Thanks for the help and the patience!

1 Like

One think what jumps into my eyes is that normally you have the extern crate ... only in the lib.rs and/or main.rs

Without extern crate the code not compile

oh you are right you have to add use num; or use num::self; in the files where you deleted the extern crate.

i made a pull request on github