forked from nonsensical-dev/zenyx-engine
format rust and nix files
This commit is contained in:
parent
26221406f9
commit
49a442ce38
9 changed files with 214 additions and 186 deletions
|
@ -33,8 +33,6 @@ pub fn set_panic_hook() {
|
|||
default_hook(info);
|
||||
std::process::exit(0);
|
||||
});
|
||||
|
||||
// Instead of using payload_as_str(), downcast the panic payload:
|
||||
let payload = info.payload();
|
||||
let payload_str = if let Some(s) = payload.downcast_ref::<&str>() {
|
||||
*s
|
||||
|
@ -65,7 +63,6 @@ https://github.com/Zenyx-Engine/Zenyx/issues
|
|||
We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.
|
||||
|
||||
Thank you kindly!", log_path.display());
|
||||
|
||||
println!("{}", panic_msg.red().bold());
|
||||
println!("\nFor future reference, the error summary is as follows:\n{}", payload_str.red().bold());
|
||||
std::process::exit(0);
|
||||
|
|
|
@ -33,7 +33,7 @@ impl Command for HelpCommand {
|
|||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
fn undo(&self) {}
|
||||
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
use core::{
|
||||
panic::set_panic_hook,
|
||||
repl::setup,
|
||||
splash, workspace,
|
||||
};
|
||||
use core::{panic::set_panic_hook, repl::setup, splash, workspace};
|
||||
|
||||
use colored::Colorize;
|
||||
use log::info;
|
||||
|
@ -22,7 +18,10 @@ async fn main() -> anyhow::Result<()> {
|
|||
info!("Type 'help' for a list of commands.");
|
||||
|
||||
let repl_thread = std::thread::spawn(|| {
|
||||
let rt = runtime::Builder::new_current_thread().enable_all().build().unwrap();
|
||||
let rt = runtime::Builder::new_current_thread()
|
||||
.enable_all()
|
||||
.build()
|
||||
.unwrap();
|
||||
rt.block_on(core::repl::input::handle_repl())
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue