From d7c412bca54041ac0cb5c2551e6b500aaf59b325 Mon Sep 17 00:00:00 2001 From: Jan Bujak Date: Sun, 28 Apr 2019 00:37:58 +0200 Subject: [PATCH 1/2] Derive `Clone` for `LoadingError` --- ash/src/entry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ash/src/entry.rs b/ash/src/entry.rs index d31dd8c..c7faf63 100644 --- a/ash/src/entry.rs +++ b/ash/src/entry.rs @@ -39,7 +39,7 @@ pub struct EntryCustom { lib: L, } -#[derive(Debug)] +#[derive(Clone, Debug)] pub enum LoadingError { LibraryLoadError(String), } From b1ff5de4c36a6bbc86be831f22a2c878ab1f6eac Mon Sep 17 00:00:00 2001 From: Jan Bujak Date: Sun, 28 Apr 2019 00:38:13 +0200 Subject: [PATCH 2/2] Derive `Clone` for `InstanceError` --- ash/src/entry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ash/src/entry.rs b/ash/src/entry.rs index c7faf63..ca6cef3 100644 --- a/ash/src/entry.rs +++ b/ash/src/entry.rs @@ -54,7 +54,7 @@ impl fmt::Display for LoadingError { impl Error for LoadingError {} -#[derive(Debug)] +#[derive(Clone, Debug)] pub enum InstanceError { LoadError(Vec<&'static str>), VkError(vk::Result),