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:
Ryan Stewart 2015-03-18 14:16:35 -07:00
parent 779f3ce888
commit 1b2fd6e6d0
7 changed files with 36 additions and 29 deletions

View file

@ -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.