mirror of
https://github.com/servo/servo
synced 2026-05-03 21:02:19 +02:00
Fix variable does not need to be mutable warning
This commit is contained in:
@@ -246,7 +246,7 @@ impl<'a> HTMLFormElementHelpers for JSRef<'a, HTMLFormElement> {
|
||||
let node: JSRef<Node> = NodeCast::from_ref(self);
|
||||
// TODO: This is an incorrect way of getting controls owned
|
||||
// by the form, but good enough until html5ever lands
|
||||
let mut data_set = node.traverse_preorder().filter_map(|child| {
|
||||
let data_set = node.traverse_preorder().filter_map(|child| {
|
||||
if child.get_disabled_state() {
|
||||
return None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user