format rust and nix files

This commit is contained in:
Chance 2025-03-22 21:58:27 -04:00 committed by BitSyndicate
parent 26221406f9
commit 49a442ce38
Signed by untrusted user: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
9 changed files with 214 additions and 186 deletions

View file

@ -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);

View file

@ -33,7 +33,7 @@ impl Command for HelpCommand {
}
}
Ok(())
}
}
fn undo(&self) {}

View file

@ -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())
});