Skip to content

Commit fc90071

Browse files
committed
fix: Copy impl for LookAheadValue, LookAheadList, LookAheadObject
1 parent cecee4b commit fc90071

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

juniper/src/executor/look_ahead_lazy.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type BorrowedSpanning<'a, T> = Spanning<T, &'a Span>;
2525
///
2626
/// In contrast to an [`InputValue`], these values do only contain constants,
2727
/// meaning that variables get automatically resolved.
28-
#[derive(Clone, Copy, Debug, PartialEq)]
28+
#[derive(Clone, Debug, PartialEq)]
2929
#[allow(missing_docs)]
3030
pub enum LookAheadValue<'a, S: ScalarValue + 'a> {
3131
Null,
@@ -73,8 +73,10 @@ impl<'a, S: ScalarValue + 'a> LookAheadValue<'a, S> {
7373
}
7474
}
7575

76+
impl<'a, S: ScalarValue> Copy for LookAheadValue<'a, S> where Self: Clone {}
77+
7678
/// A JSON-like list that can be used as an argument in the query execution.
77-
#[derive(Clone, Copy, Debug)]
79+
#[derive(Clone, Debug)]
7880
pub struct LookAheadList<'a, S> {
7981
input_list: &'a [Spanning<InputValue<S>>],
8082
vars: Option<&'a Variables<S>>,
@@ -90,6 +92,8 @@ impl<'a, S: ScalarValue> LookAheadList<'a, S> {
9092
}
9193
}
9294

95+
impl<'a, S: ScalarValue> Copy for LookAheadList<'a, S> where Self: Clone {}
96+
9397
impl<'a, S> Default for LookAheadList<'a, S> {
9498
fn default() -> Self {
9599
Self {
@@ -130,7 +134,7 @@ impl<'a, S: ScalarValue + 'a> IntoIterator for &LookAheadList<'a, S> {
130134
}
131135

132136
/// A JSON-like object that can be used as an argument in the query execution.
133-
#[derive(Clone, Copy, Debug)]
137+
#[derive(Clone, Debug)]
134138
pub struct LookAheadObject<'a, S> {
135139
input_object: &'a [(Spanning<String>, Spanning<InputValue<S>>)],
136140
vars: Option<&'a Variables<S>>,
@@ -146,6 +150,8 @@ impl<'a, S: ScalarValue + 'a> LookAheadObject<'a, S> {
146150
}
147151
}
148152

153+
impl<'a, S: ScalarValue> Copy for LookAheadObject<'a, S> where Self: Clone {}
154+
149155
impl<'a, S> Default for LookAheadObject<'a, S> {
150156
fn default() -> Self {
151157
Self {

0 commit comments

Comments
 (0)