Report lines starting with &&.

This commit is contained in:
Zbynek Winkler 2016-04-20 16:39:43 +02:00
parent 924d804583
commit 39780ca39f
3 changed files with 6 additions and 1 deletions

View file

@ -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: