Update for latest Rust

This commit is contained in:
York Xiang 2015-03-19 18:06:50 +08:00
parent b4f8c3b959
commit 0be7b072f0

View file

@ -97,7 +97,6 @@ impl<'a> WindowBuilder<'a> {
/// ///
/// Will panic if `samples` is not a power of two. /// Will panic if `samples` is not a power of two.
pub fn with_multisampling(mut self, samples: u16) -> WindowBuilder<'a> { pub fn with_multisampling(mut self, samples: u16) -> WindowBuilder<'a> {
use std::num::UnsignedInt;
assert!(samples.is_power_of_two()); assert!(samples.is_power_of_two());
self.attribs.multisampling = Some(samples); self.attribs.multisampling = Some(samples);
self self