201: Derive `Clone` for `InstanceError` and `LoadingError` r=MaikKlein a=koute



Co-authored-by: Jan Bujak <j@exia.io>
This commit is contained in:
bors[bot] 2019-04-29 19:43:42 +00:00
commit 13a1a3f1b7

View file

@ -39,7 +39,7 @@ pub struct EntryCustom<L> {
lib: L, lib: L,
} }
#[derive(Debug)] #[derive(Clone, Debug)]
pub enum LoadingError { pub enum LoadingError {
LibraryLoadError(String), LibraryLoadError(String),
} }
@ -54,7 +54,7 @@ impl fmt::Display for LoadingError {
impl Error for LoadingError {} impl Error for LoadingError {}
#[derive(Debug)] #[derive(Clone, Debug)]
pub enum InstanceError { pub enum InstanceError {
LoadError(Vec<&'static str>), LoadError(Vec<&'static str>),
VkError(vk::Result), VkError(vk::Result),