Fix compilation warnings
This commit is contained in:
parent
0773427513
commit
ea957ce1d7
4 changed files with 10 additions and 10 deletions
|
|
@ -95,7 +95,7 @@ pub fn get_primary_monitor() -> MonitorID {
|
|||
// we simply get all available monitors and return the one with the `PRIMARY_DEVICE` flag
|
||||
// TODO: it is possible to query the win32 API for the primary monitor, this should be done
|
||||
// instead
|
||||
for monitor in get_available_monitors().move_iter() {
|
||||
for monitor in get_available_monitors().into_iter() {
|
||||
if (monitor.flags & ffi::DISPLAY_DEVICE_PRIMARY_DEVICE) != 0 {
|
||||
return monitor
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue