From 0de77760207ec6366d991119284e8c9176cabcc2 Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Sat, 4 Feb 2023 20:10:56 +0100 Subject: [PATCH] impl Clone, Copy on public objects --- src/inline.rs | 4 ++-- src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/inline.rs b/src/inline.rs index 93a624a..3e1cb77 100644 --- a/src/inline.rs +++ b/src/inline.rs @@ -55,7 +55,7 @@ pub enum QuoteType { Double, } -#[derive(Debug, PartialEq, Eq)] +#[derive(Clone, Debug, PartialEq, Eq)] pub enum EventKind { Enter(Container), Exit(Container), @@ -66,7 +66,7 @@ pub enum EventKind { Placeholder, } -#[derive(Debug, PartialEq, Eq)] +#[derive(Clone, Debug, PartialEq, Eq)] pub struct Event { pub kind: EventKind, pub span: Span, diff --git a/src/lib.rs b/src/lib.rs index 8f32861..40eb0ba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -261,7 +261,7 @@ pub enum Alignment { } /// The type of an inline span link. -#[derive(Debug, PartialEq, Eq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum SpanLinkType { /// E.g. `[text](url)` Inline, @@ -270,7 +270,7 @@ pub enum SpanLinkType { } /// The type of an inline link. -#[derive(Debug, PartialEq, Eq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum LinkType { /// E.g. `[text](url)`. Span(SpanLinkType),