mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
Fix CI warnings (#1898)
* Fix CI warnings * Use the panic! macro rather than format! + panic_any
This commit is contained in:
@@ -609,11 +609,10 @@ impl<T: 'static> EventLoop<T> {
|
||||
#[cfg(not(feature = "x11"))]
|
||||
let x11_err = "backend disabled";
|
||||
|
||||
let err_string = format!(
|
||||
panic!(
|
||||
"Failed to initialize any backend! Wayland status: {:?} X11 status: {:?}",
|
||||
wayland_err, x11_err,
|
||||
);
|
||||
panic!(err_string);
|
||||
}
|
||||
|
||||
#[cfg(feature = "wayland")]
|
||||
|
||||
Reference in New Issue
Block a user