mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Rust tidy: disallow assignment = in the beginning of line
This commit is contained in:
parent
6d4ccab2b7
commit
adcedd8314
3 changed files with 6 additions and 0 deletions
|
@ -125,6 +125,7 @@ class CheckTidiness(unittest.TestCase):
|
|||
self.assertEqual('extra space after (', errors.next()[2])
|
||||
self.assertEqual('extra space after (', errors.next()[2])
|
||||
self.assertEqual('extra space after test_fun', errors.next()[2])
|
||||
self.assertEqual('no = in the beginning of line', errors.next()[2])
|
||||
self.assertNoMoreErrors(errors)
|
||||
|
||||
feature_errors = tidy.collect_errors_for_files(iterFile('lib.rs'), [], [tidy.check_rust], print_text=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue