| 1 | //! Main entrypoint for the application. |
| 2 | |
| 3 | use bottomrust-analyzer cargo bottom 0.14.9 crate/::{reset_stdoutrust-analyzer cargo bottom 0.14.9 reset_stdout()., start_bottomrust-analyzer cargo bottom 0.14.9 start_bottom().}; |
| 4 | |
| 5 | fn mainrust-analyzer cargo bottom 0.14.9 main().() -> anyhowrust-analyzer cargo anyhow 1.0.104 crate/::Resultrust-analyzer cargo anyhow 1.0.104 Result#<()> { |
| 6 | let mut run_error_hook = false; |
| 7 | |
| 8 | start_bottomrust-analyzer cargo bottom 0.14.9 start_bottom().(&mut run_error_hook).inspect_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]inspect_err().(|_| { |
| 9 | if run_error_hook { |
| 10 | reset_stdoutrust-analyzer cargo bottom 0.14.9 reset_stdout().(); |
| 11 | } |
| 12 | }) |
| 13 | } |