Warning fixes for OS X.
This commit is contained in:
parent
3e11e5ef69
commit
77b3743117
10 changed files with 17 additions and 19 deletions
|
|
@ -68,6 +68,7 @@ pub use window::{AvailableMonitorsIter, MonitorId, get_available_monitors, get_p
|
|||
pub use native_monitor::NativeMonitorId;
|
||||
|
||||
use std::io;
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
use std::cmp::Ordering;
|
||||
|
||||
mod api;
|
||||
|
|
@ -377,6 +378,7 @@ pub struct PixelFormatRequirements {
|
|||
}
|
||||
|
||||
impl PixelFormatRequirements {
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
fn choose_pixel_format<T, I>(&self, iter: I) -> Result<(T, PixelFormat), CreationError>
|
||||
where I: IntoIterator<Item=(T, PixelFormat)>, T: Clone
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue