~genbyte/bempline

0b74379192040700649312680b270f7825e19be8 — Brad Alfirevic 2 months ago 450f15d
Derive copy and clone
2 files changed, 2 insertions(+), 1 deletions(-)

M src/document.rs
M src/elements.rs
M src/document.rs => src/document.rs +1 -0
@@ 2,6 2,7 @@ use crate::elements::Element;
use crate::error::Error;
use std::fs;

#[derive(Copy, Clone)]
pub struct Document {
    elements: Vec<Element>,
}

M src/elements.rs => src/elements.rs +1 -1
@@ 1,4 1,4 @@
#[derive(Debug, PartialEq, Clone)]
#[derive(Debug, PartialEq, Copy, Clone)]
pub enum Element {
    Text(String),
    Variable(String),