logo
  • Search
  • Reddit Posts 🔥
  • Archive
  • GitHub

Should I follow Clippy's Suggestion?

141 points aggggwannabeog 2022-12-25 10:55:00
View on Reddit ↗

I have an enum that contains all of my game's state

pub enum States {
    Menu(menu_state::MenuState),
    Game(game_state::GameState),
}

And here is the clippy warning:

​

https://preview.redd.it/jafhg9csmy7a1.png?width=1004&format=png&auto=webp&s=57705baa3e704008e9d106a82ddf50715aedb445

Is it a good idea to use Box for this one

© 2025 Query.rs, built by Folyd with ❤️❤️, see about page to learn more · meiguo.app · aiberm.com