From 3ada6b2a21e24fea2feeb8fb89888710072d4b52 Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Fri, 24 Mar 2023 09:38:35 +0100 Subject: [PATCH] feat: more comprehensive clone for field-less enums (#58) --- src/mapper/assembly.rs | 2 +- src/parser/ds.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapper/assembly.rs b/src/mapper/assembly.rs index 74b3182..142ebc5 100644 --- a/src/mapper/assembly.rs +++ b/src/mapper/assembly.rs @@ -8,7 +8,7 @@ use crate::mapper::variant::{Config as VariantMapperConfig, Mapper as VariantMap use crate::parser::HgvsVariant; use crate::{data::interface::Provider, static_data::Assembly, validator::ValidationLevel}; -#[derive(Debug, PartialEq, Eq, Default)] +#[derive(Debug, PartialEq, Eq, Default, Clone, Copy)] pub enum InParAssume { #[default] X, diff --git a/src/parser/ds.rs b/src/parser/ds.rs index 80bbb29..99ea914 100644 --- a/src/parser/ds.rs +++ b/src/parser/ds.rs @@ -628,7 +628,7 @@ impl TryFrom for Range { /// Specifies whether the CDS position is relative to the CDS start or /// CDS end. -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Copy, Debug, PartialEq)] pub enum CdsFrom { Start, End,