Skip to content

Commit

Permalink
Derive clone and debug for function
Browse files Browse the repository at this point in the history
  • Loading branch information
c410-f3r committed Aug 19, 2018
1 parent 184cd86 commit f3172d1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions vm/src/api/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ pub type FunctionRef<'vm, F> = Function<&'vm Thread, F>;
pub type OwnedFunction<F> = Function<RootedThread, F>;

/// Type which represents an function in gluon
#[derive(Clone, Debug)]
pub struct Function<T, F>
where
T: Deref<Target = Thread>,
Expand Down Expand Up @@ -206,18 +207,6 @@ where
}
}

impl<T, F> Clone for Function<T, F>
where
T: Deref<Target = Thread> + Clone,
{
fn clone(&self) -> Self {
Function {
value: self.value.clone(),
_marker: self._marker.clone(),
}
}
}

impl<T, F> VmType for Function<T, F>
where
T: Deref<Target = Thread>,
Expand Down

0 comments on commit f3172d1

Please sign in to comment.