Fixed macos

This commit is contained in:
Andrey Lesnikov 2016-09-19 21:05:48 +03:00
parent 7f6ae8910e
commit 2def6d5fff

View file

@ -51,14 +51,14 @@ impl From<ActivationPolicy> for NSApplicationActivationPolicy {
}
/// Additional methods on `WindowBuilder` that are specific to MacOS.
pub trait WindowBuilderExt<'a> {
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder<'a>;
pub trait WindowBuilderExt {
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder;
}
impl<'a> WindowBuilderExt<'a> for WindowBuilder<'a> {
impl WindowBuilderExt for WindowBuilder {
/// Sets the activation policy for the window being built
#[inline]
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder<'a> {
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder {
self.platform_specific.activation_policy = activation_policy;
self
}