mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 13:20:06 -04:00
Fix clippy issues on stable
This commit is contained in:
@@ -363,7 +363,7 @@ impl AppState {
|
||||
|
||||
pub fn queue_event(wrapper: EventWrapper) {
|
||||
if !is_main_thread() {
|
||||
panic!("Event queued from different thread: {:#?}", wrapper);
|
||||
panic!("Event queued from different thread: {wrapper:#?}");
|
||||
}
|
||||
HANDLER.events().push_back(wrapper);
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ impl Window {
|
||||
impl fmt::Display for OsError {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
OsError::CGError(e) => f.pad(&format!("CGError {}", e)),
|
||||
OsError::CGError(e) => f.pad(&format!("CGError {e}")),
|
||||
OsError::CreationError(e) => f.pad(e),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ impl MonitorHandle {
|
||||
pub fn name(&self) -> Option<String> {
|
||||
let MonitorHandle(display_id) = *self;
|
||||
let screen_num = CGDisplay::new(display_id).model_number();
|
||||
Some(format!("Monitor #{}", screen_num))
|
||||
Some(format!("Monitor #{screen_num}"))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user