mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
add &Root<T> checker
update rust_tidy tests update rust_tidy.rs and test_tidy.py
This commit is contained in:
parent
c193af8c32
commit
a17ae72414
3 changed files with 4 additions and 1 deletions
|
@ -387,6 +387,8 @@ 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),
|
||||
# No benefit to using &Root<T>
|
||||
(r": &Root<", "use &T instead of &Root<T>", no_filter),
|
||||
(r"^&&", "operators should go at the end of the first line", no_filter),
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue