How is it a code smell? I'm pretty sure interior mutability is a well established design pattern. I'm not really familiar with the pattern you're describing using Ref/RefMut wrapping, could you show me what you mean?
Yeah I didn't want to pour a bunch of time into wrangling borrow checker stuff for a small code snippet.