aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tidy.py')
-rw-r--r--python/tidy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tidy.py b/python/tidy.py
index 93b30e147f9..432814e8f93 100644
--- a/python/tidy.py
+++ b/python/tidy.py
@@ -351,7 +351,7 @@ def check_rust(file_name, contents):
mods = []
# There should not be any extra pointer dereferencing
- if re.search(r": &Vec<", line) is not None:
+ if ": &Vec<" in line:
yield (idx + 1, "use &[T] instead of &Vec<T>")