diff --git a/components/script/dom/htmlinputelement.rs b/components/script/dom/htmlinputelement.rs
index 2f3db69b43d..cc6bd5e668c 100644
--- a/components/script/dom/htmlinputelement.rs
+++ b/components/script/dom/htmlinputelement.rs
@@ -158,7 +158,6 @@ pub trait RawLayoutHTMLInputElementHelpers {
}
impl LayoutHTMLInputElementHelpers for LayoutJS {
- #[allow(unrooted_must_root)]
#[allow(unsafe_code)]
unsafe fn get_value_for_layout(self) -> String {
#[allow(unsafe_code)]