Skip to content

Commit

Permalink
Merge #611
Browse files Browse the repository at this point in the history
611: Derive clone and debug for function r=Marwes a=c410-f3r

Is it OK?

Co-authored-by: Caio <c410.f3r@gmail.com>
  • Loading branch information
bors[bot] and c410-f3r committed Aug 19, 2018
2 parents 184cd86 + f3172d1 commit d31a1f8
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 d31a1f8

Please sign in to comment.