mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
Report lines starting with &&.
This commit is contained in:
parent
924d804583
commit
39780ca39f
3 changed files with 6 additions and 1 deletions
|
@ -378,6 +378,7 @@ def check_rust(file_name, lines):
|
|||
(r": &Vec<", "use &[T] instead of &Vec<T>", no_filter),
|
||||
# No benefit over using &str
|
||||
(r": &String", "use &str instead of &String", no_filter),
|
||||
(r"^&&", "operators should go at the end of the first line", no_filter),
|
||||
]
|
||||
|
||||
for pattern, message, filter_func in regex_rules:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue