Skip to content

Commit d9c3dac

Browse files
committed
Fix 1.24.1 build
1 parent 5289d22 commit d9c3dac

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/event_loop.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ pub struct EventLoop<T: 'static> {
3434
pub(crate) _marker: ::std::marker::PhantomData<*mut ()> // Not Send nor Sync
3535
}
3636

37-
impl<T> std::fmt::Debug for EventLoop<T> {
38-
fn fmt(&self, fmtr: &mut std::fmt::Formatter) -> std::fmt::Result {
37+
impl<T> fmt::Debug for EventLoop<T> {
38+
fn fmt(&self, fmtr: &mut fmt::Formatter) -> fmt::Result {
3939
fmtr.pad("EventLoop { .. }")
4040
}
4141
}
@@ -154,8 +154,8 @@ impl<T> EventLoopProxy<T> {
154154
}
155155
}
156156

157-
impl<T> std::fmt::Debug for EventLoopProxy<T> {
158-
fn fmt(&self, fmtr: &mut std::fmt::Formatter) -> std::fmt::Result {
157+
impl<T> fmt::Debug for EventLoopProxy<T> {
158+
fn fmt(&self, fmtr: &mut fmt::Formatter) -> fmt::Result {
159159
fmtr.pad("EventLoopProxy { .. }")
160160
}
161161
}

src/platform_impl/windows/window.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ impl Window {
614614
let mut window_state_lock = self.window_state.lock();
615615
unsafe {
616616
let monitor_rect = monitor.as_ref()
617-
.map(|RootMonitorHandle{ ref inner }| {
617+
.map(|&RootMonitorHandle{ ref inner }| {
618618
let (x, y): (i32, i32) = inner.get_position().into();
619619
let (width, height): (u32, u32) = inner.get_dimensions().into();
620620
(x, y, width, height)

src/window.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ pub struct Window {
3333
pub(crate) window: platform_impl::Window,
3434
}
3535

36-
impl std::fmt::Debug for Window {
37-
fn fmt(&self, fmtr: &mut std::fmt::Formatter) -> std::fmt::Result {
36+
impl fmt::Debug for Window {
37+
fn fmt(&self, fmtr: &mut fmt::Formatter) -> fmt::Result {
3838
fmtr.pad("Window { .. }")
3939
}
4040
}
@@ -58,8 +58,8 @@ pub struct WindowBuilder {
5858
pub(crate) platform_specific: platform_impl::PlatformSpecificWindowBuilderAttributes,
5959
}
6060

61-
impl std::fmt::Debug for WindowBuilder {
62-
fn fmt(&self, fmtr: &mut std::fmt::Formatter) -> std::fmt::Result {
61+
impl fmt::Debug for WindowBuilder {
62+
fn fmt(&self, fmtr: &mut fmt::Formatter) -> fmt::Result {
6363
fmtr.debug_struct("WindowBuilder")
6464
.field("window", &self.window)
6565
.finish()

0 commit comments

Comments
 (0)