From 1b2fd6e6d01788922a90cd4e58adf371007f50a8 Mon Sep 17 00:00:00 2001 From: Ryan Stewart Date: Wed, 18 Mar 2015 14:16:35 -0700 Subject: fix headless build by ensuring NativeMonitorId enum is available internally even without the window feature; add Eq/PartialEq to NativeMonitorId --- src/win32/monitor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/win32') diff --git a/src/win32/monitor.rs b/src/win32/monitor.rs index 5fbd5dd..819aa7f 100644 --- a/src/win32/monitor.rs +++ b/src/win32/monitor.rs @@ -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. -- cgit v1.2.3