diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index 989b83aa505..3bf6176de44 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -584,6 +584,12 @@ def check_rust(file_name, lines): # -> () is unnecessary (r"-> \(\)", "encountered function signature with -> ()", no_filter), ] + keywords = ["if", "let", "mut", "extern", "as", "impl", "fn", "struct", "enum", "pub", "mod", + "use", "in", "ref", "type", "where", "trait"] + extra_space_after = lambda key: (r"(?