Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bevy::main_return_without_appexit is emitted when AppExit is stored in a variable #87

Open
BD103 opened this issue Sep 18, 2024 · 0 comments
Labels
A-Linter Related to the linter and custom lints C-Bug A bug in the program

Comments

@BD103
Copy link
Member

BD103 commented Sep 18, 2024

fn main() {
    let app_exit = App::new().run();
    println!("{app_exit:?}");
}

The above causes a warning, though it probably shouldn't. While the intended solution is to return AppExit, there are multiple others. We mainly just want AppExit to be handled, so Apps do not silently fail.

@BD103 BD103 added A-Linter Related to the linter and custom lints C-Bug A bug in the program labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Related to the linter and custom lints C-Bug A bug in the program
Projects
None yet
Development

No branches or pull requests

1 participant