fix fatal logs

This commit is contained in:
galister
2024-02-21 00:13:43 +01:00
parent 50639d927d
commit 2d264e3c15

View File

@@ -27,13 +27,13 @@ pub enum BackendError {
#[error("backend not supported")] #[error("backend not supported")]
NotSupported, NotSupported,
#[cfg(feature = "openxr")] #[cfg(feature = "openxr")]
#[error("openxr error {0}")] #[error("OpenXR Error: {0}")]
OpenXrError(#[from] xr::sys::Result), OpenXrError(#[from] xr::sys::Result),
#[error("shutdown")] #[error("Shutdown")]
Shutdown, Shutdown,
#[error("restart")] #[error("Restart")]
Restart, Restart,
#[error("fatal")] #[error("Fatal: {0}")]
Fatal(#[from] anyhow::Error), Fatal(#[from] anyhow::Error),
} }
@@ -70,7 +70,6 @@ where
if show_screens.is_empty() { if show_screens.is_empty() {
screens.first().map(|s| { screens.first().map(|s| {
show_screens.push(s.state.name.clone()); show_screens.push(s.state.name.clone());
}); });
} }