mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11:00
Fixed error where rustc couldn't infer the type
This commit is contained in:
parent
c12fa6eeef
commit
ee2a5e4a2f
|
@ -391,7 +391,7 @@ impl Window {
|
||||||
for i in (0..count) {
|
for i in (0..count) {
|
||||||
let screen = msg_send![screens, objectAtIndex:i as NSUInteger];
|
let screen = msg_send![screens, objectAtIndex:i as NSUInteger];
|
||||||
let device_description = NSScreen::deviceDescription(screen);
|
let device_description = NSScreen::deviceDescription(screen);
|
||||||
let value = msg_send![device_description, objectForKey:*key];
|
let value: id = msg_send![device_description, objectForKey:*key];
|
||||||
if value != nil {
|
if value != nil {
|
||||||
let screen_number: NSUInteger = msg_send![value, unsignedIntegerValue];
|
let screen_number: NSUInteger = msg_send![value, unsignedIntegerValue];
|
||||||
if screen_number as u32 == native_id {
|
if screen_number as u32 == native_id {
|
||||||
|
|
Loading…
Reference in a new issue