milkey-mouse / planets

A space game.
GNU General Public License v3.0
3 stars 1 forks source link

&Arc<T> to Arc<T> #26

Closed milkey-mouse closed 5 years ago

milkey-mouse commented 5 years ago

Use .clone() on the Arc itself and it merely increments the reference. A reference to an Arc is kind of redundant.

We could always get rid of the Arc altogether and use normal references; there isn't any multithreading, and even when there is, it won't touch most of what's wrapped in Arc<T> right now.

milkey-mouse commented 5 years ago

We could always get rid of the Arc altogether and use normal references; there isn't any multithreading, and even when there is, it won't touch most of what's wrapped in Arc right now.

I just realized this won't work anywhere we have trait objects, which is most places. Nevermind.