mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Add lint check for &DomRoot<T>
`&DomRoot<T> is strictly less expressive than `&T`, so using it is pointless.
This commit is contained in:
parent
bac9903fbe
commit
cd9195056c
9 changed files with 13 additions and 13 deletions
|
@ -112,6 +112,7 @@ class CheckTidiness(unittest.TestCase):
|
|||
self.assertEqual('use &[T] instead of &Vec<T>', next(errors)[2])
|
||||
self.assertEqual('use &str instead of &String', next(errors)[2])
|
||||
self.assertEqual('use &T instead of &Root<T>', next(errors)[2])
|
||||
self.assertEqual('use &T instead of &DomRoot<T>', next(errors)[2])
|
||||
self.assertEqual('encountered function signature with -> ()', next(errors)[2])
|
||||
self.assertEqual('operators should go at the end of the first line', next(errors)[2])
|
||||
self.assertNoMoreErrors(errors)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue