Fix CI warnings (#1898)

* Fix CI warnings

* Use the panic! macro rather than format! + panic_any
This commit is contained in:
Markus Røyset 2021-03-30 21:27:32 +02:00 committed by GitHub
parent 0d634a0061
commit ca9c05368e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 6 deletions

View file

@ -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")]