From e0f36b80c9bf29bbf3306a617614f6913b705a10 Mon Sep 17 00:00:00 2001 From: Jan Segre Date: Mon, 23 May 2016 03:17:31 -0300 Subject: Make `WindowBuilder` and `HeadlessRendererBuilder` derive `Clone`. --- src/api/android/mod.rs | 4 ++-- src/api/cocoa/headless.rs | 2 +- src/api/cocoa/mod.rs | 2 +- src/api/ios/mod.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/api') diff --git a/src/api/android/mod.rs b/src/api/android/mod.rs index 433472c..2c17d92 100644 --- a/src/api/android/mod.rs +++ b/src/api/android/mod.rs @@ -65,9 +65,9 @@ impl MonitorId { } } -#[derive(Default)] +#[derive(Clone, Default)] pub struct PlatformSpecificWindowBuilderAttributes; -#[derive(Default)] +#[derive(Clone, Default)] pub struct PlatformSpecificHeadlessBuilderAttributes; pub struct PollEventsIterator<'a> { diff --git a/src/api/cocoa/headless.rs b/src/api/cocoa/headless.rs index ac6c4e0..8d89e40 100644 --- a/src/api/cocoa/headless.rs +++ b/src/api/cocoa/headless.rs @@ -13,7 +13,7 @@ use cocoa::appkit::*; use PixelFormat; use api::cocoa::helpers; -#[derive(Default)] +#[derive(Clone, Default)] pub struct PlatformSpecificHeadlessBuilderAttributes; pub struct HeadlessContext { diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs index 3c4d802..79f2b71 100644 --- a/src/api/cocoa/mod.rs +++ b/src/api/cocoa/mod.rs @@ -181,7 +181,7 @@ impl Drop for WindowDelegate { } } -#[derive(Default)] +#[derive(Clone, Default)] pub struct PlatformSpecificWindowBuilderAttributes { pub activation_policy: ActivationPolicy, } diff --git a/src/api/ios/mod.rs b/src/api/ios/mod.rs index afcc6f4..8bee513 100644 --- a/src/api/ios/mod.rs +++ b/src/api/ios/mod.rs @@ -177,7 +177,7 @@ impl MonitorId { } } -#[derive(Default)] +#[derive(Clone, Default)] pub struct PlatformSpecificWindowBuilderAttributes; impl Window { -- cgit v1.2.3