mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 13:31:29 +11:00
Fix infinite recursion in WindowId
conversion methods
This commit is contained in:
parent
d78a870e66
commit
4b10993970
|
@ -85,13 +85,13 @@ impl WindowId {
|
||||||
|
|
||||||
impl From<WindowId> for u64 {
|
impl From<WindowId> for u64 {
|
||||||
fn from(window_id: WindowId) -> Self {
|
fn from(window_id: WindowId) -> Self {
|
||||||
window_id.into()
|
window_id.0.into()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<u64> for WindowId {
|
impl From<u64> for WindowId {
|
||||||
fn from(raw_id: u64) -> Self {
|
fn from(raw_id: u64) -> Self {
|
||||||
raw_id.into()
|
Self(raw_id.into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue