aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlbuttonelement.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-19 07:40:22 +0530
committerMs2ger <ms2ger@gmail.com>2015-03-21 10:27:32 +0100
commit3479d3fa7fbbfbcdbc92a93896b4a347338fe103 (patch)
treed05bd5d1964dfad791132d2384950cc681597f6e /components/script/dom/htmlbuttonelement.rs
parent4eb26065acdc37d275e658d8581282cb39b90686 (diff)
downloadservo-3479d3fa7fbbfbcdbc92a93896b4a347338fe103.tar.gz
servo-3479d3fa7fbbfbcdbc92a93896b4a347338fe103.zip
Replace unsafe_blocks by unsafe_code.
Diffstat (limited to 'components/script/dom/htmlbuttonelement.rs')
-rw-r--r--components/script/dom/htmlbuttonelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlbuttonelement.rs b/components/script/dom/htmlbuttonelement.rs
index 8f09c5d8745..e1d74d7a3a6 100644
--- a/components/script/dom/htmlbuttonelement.rs
+++ b/components/script/dom/htmlbuttonelement.rs
@@ -211,7 +211,7 @@ impl<'a> Activatable for JSRef<'a, HTMLButtonElement> {
}
// https://html.spec.whatwg.org/multipage/forms.html#implicit-submission
- #[allow(unsafe_blocks)]
+ #[allow(unsafe_code)]
fn implicit_submission(&self, ctrlKey: bool, shiftKey: bool, altKey: bool, metaKey: bool) {
let doc = document_from_node(*self).root();
let node: JSRef<Node> = NodeCast::from_ref(doc.r());