From 0802daf088dc08479fe67dbf476bd3802257b0ea Mon Sep 17 00:00:00 2001 From: PierreKrieger Date: Wed, 28 Sep 2016 15:50:32 +0200 Subject: [PATCH] Remove 'static + Send + Sync from Image and ImageView traits --- vulkano/src/image/traits.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vulkano/src/image/traits.rs b/vulkano/src/image/traits.rs index 7c578a42..89ca335b 100644 --- a/vulkano/src/image/traits.rs +++ b/vulkano/src/image/traits.rs @@ -31,8 +31,7 @@ use sync::Semaphore; use VulkanObject; /// Trait for types that represent images. -// TODO: remove 'static + Send + Sync -pub unsafe trait Image: 'static + Send + Sync { +pub unsafe trait Image { /// Returns the inner unsafe image object used by this image. fn inner(&self) -> &UnsafeImage; @@ -159,8 +158,7 @@ pub unsafe trait ImageContent

: Image { } /// Trait for types that represent image views. -// TODO: remove 'static + Send + Sync -pub unsafe trait ImageView: 'static + Send + Sync { +pub unsafe trait ImageView { fn parent(&self) -> &Image; fn parent_arc(&Arc) -> Arc where Self: Sized;