If you feel it's time to start living in a new way than this
cargo subcommand is for you.
WARNING! Use this program at your own risk. It can drop recent changes of your project.
Install the tool using this command:
cargo install cargo-suicide
Move to your project's directory, add changes to the code and run:
If your new code contains any warning it will run
git reset --hard. If you had written shitcode before it will drop any changes everytime.
If the subcommand dropped your changes, but you feel happy because your editor remains open than try
--god mode. It will kill you editor as well:
cargo suicide --god