aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/compartments.rs
diff options
context:
space:
mode:
authorAron Zwaan <aronzwaan@gmail.com>2019-04-24 22:33:16 +0200
committerAron Zwaan <aronzwaan@gmail.com>2019-04-25 11:37:35 +0200
commite2e6e2ac9428b9448edb06f7f11b201ce68e7191 (patch)
tree1ad0b3a8647d2946bf9a0b5ff427f1d8c1e6cf29 /components/script/compartments.rs
parent1b6949d4cf951600efa6db6747b65e2db42a96cd (diff)
downloadservo-e2e6e2ac9428b9448edb06f7f11b201ce68e7191.tar.gz
servo-e2e6e2ac9428b9448edb06f7f11b201ce68e7191.zip
Pass InCompartment by value
Diffstat (limited to 'components/script/compartments.rs')
-rw-r--r--components/script/compartments.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/compartments.rs b/components/script/compartments.rs
index e0560c83710..aedabca773e 100644
--- a/components/script/compartments.rs
+++ b/components/script/compartments.rs
@@ -17,6 +17,7 @@ impl AlreadyInCompartment {
}
}
+#[derive(Clone, Copy)]
pub enum InCompartment<'a> {
Already(&'a AlreadyInCompartment),
Entered(&'a JSAutoCompartment),