From e362ca621361a15e9fec2042960bdb122c801cbe Mon Sep 17 00:00:00 2001 From: Nick Alexander Date: Thu, 28 Jun 2018 12:21:41 -0700 Subject: [PATCH] Part 1: Allow to clone useful query structures. --- edn/src/query.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/edn/src/query.rs b/edn/src/query.rs index ca8ec76b..e4ba9f43 100644 --- a/edn/src/query.rs +++ b/edn/src/query.rs @@ -545,19 +545,19 @@ impl std::fmt::Display for PullAttributeSpec { } -#[derive(Debug, Eq, PartialEq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct Pull { pub var: Variable, pub patterns: Vec, } -#[derive(Debug, Eq, PartialEq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub struct Aggregate { pub func: QueryFunction, pub args: Vec, } -#[derive(Debug, Eq, PartialEq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub enum Element { Variable(Variable), Aggregate(Aggregate), @@ -650,7 +650,7 @@ pub enum Limit { /// # } /// ``` /// -#[derive(Debug, Eq, PartialEq)] +#[derive(Clone, Debug, Eq, PartialEq)] pub enum FindSpec { /// Returns an array of arrays, represented as a single array with length a multiple of width. FindRel(Vec),