mirror of
https://github.com/servo/servo.git
synced 2025-07-31 19:20:22 +01:00
Silence lint for self.global in XHR
This commit is contained in:
parent
4a8af307d1
commit
52983ed97c
2 changed files with 4 additions and 4 deletions
|
@ -160,7 +160,7 @@ impl LintPass for UnrootedPass {
|
|||
ast::ExprAssign(_, ref e) |
|
||||
// Match statements allow you to bind onto the variable later in an arm
|
||||
// We need not check arms individually since enum/struct fields are already
|
||||
// linted in `check_struct_def` and `check_variant `
|
||||
// linted in `check_struct_def` and `check_variant`
|
||||
// (so there is no way of destructuring out a `#[must_root]` field)
|
||||
ast::ExprMatch(ref e, _) |
|
||||
// For loops allow you to bind a return value locally
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue