veloren / veloren

An open world, open source voxel RPG inspired by Dwarf Fortress and Cube World. This repository is a mirror. Please submit all PRs and issues on our GitLab page.

Home Page:https://www.veloren.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Investigate where we can/should use Cell and RefCell across the codebase

zesterer opened this issue · comments

More information here: https://doc.rust-lang.org/std/cell/index.html

For example, we really shouldn't be doing interior mutability using an internal type like this (increased risk of deadlocks, among other issues): https://github.com/veloren/game/blob/master/voxygen/src/game.rs#L43