diff options
author | mrmiywj <jsyangwenjie@gmail.com> | 2016-05-15 18:19:49 +0800 |
---|---|---|
committer | mrmiywj <jsyangwenjie@gmail.com> | 2016-06-05 15:43:35 +0800 |
commit | a17ae724144af9bf997a7ad5de8d1fd72e5b7fdd (patch) | |
tree | 56273cead50510260f4bf653a518af14f95dfb4b /python/tidy/servo_tidy | |
parent | c193af8c32e87c146f5a45d06d3c6086f56be820 (diff) | |
download | servo-a17ae724144af9bf997a7ad5de8d1fd72e5b7fdd.tar.gz servo-a17ae724144af9bf997a7ad5de8d1fd72e5b7fdd.zip |
add &Root<T> checker
update rust_tidy tests
update rust_tidy.rs and test_tidy.py
Diffstat (limited to 'python/tidy/servo_tidy')
-rw-r--r-- | python/tidy/servo_tidy/tidy.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index 1007fcb0440..6e559e15dab 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -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), ] |