mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 21:00:04 -04:00
fix headless build by ensuring NativeMonitorId enum is available internally even without the window feature; add Eq/PartialEq to NativeMonitorId
This commit is contained in:
@@ -3,7 +3,7 @@ use user32;
|
||||
|
||||
use std::collections::VecDeque;
|
||||
|
||||
use NativeMonitorID;
|
||||
use native_monitor::NativeMonitorId;
|
||||
|
||||
/// Win32 implementation of the main `MonitorID` object.
|
||||
pub struct MonitorID {
|
||||
@@ -116,8 +116,8 @@ impl MonitorID {
|
||||
}
|
||||
|
||||
/// See the docs of the crate root file.
|
||||
pub fn get_native_identifier(&self) -> NativeMonitorID {
|
||||
NativeMonitorID::Name(self.readable_name.clone())
|
||||
pub fn get_native_identifier(&self) -> NativeMonitorId {
|
||||
NativeMonitorId::Name(self.readable_name.clone())
|
||||
}
|
||||
|
||||
/// See the docs if the crate root file.
|
||||
|
||||
Reference in New Issue
Block a user