Stop implementing Copy for JS<T>.

A copy of a JS<T> doesn't have the rooting properties of the original,
so it makes no sense for it to implement Copy.
This commit is contained in:
Eli Friedman 2015-10-14 16:20:47 -07:00
parent 9d5f09e09c
commit 88a1cbb28b
7 changed files with 47 additions and 35 deletions

View file

@ -32,7 +32,7 @@ const DEFAULT_WIDTH: u32 = 300;
const DEFAULT_HEIGHT: u32 = 150;
#[must_root]
#[derive(JSTraceable, Clone, Copy, HeapSizeOf)]
#[derive(JSTraceable, Clone, HeapSizeOf)]
pub enum CanvasContext {
Context2d(JS<CanvasRenderingContext2D>),
WebGL(JS<WebGLRenderingContext>),