From b1faaa15dcae2c0ba3bebd9d668ce9e3b231932c Mon Sep 17 00:00:00 2001 From: lucantrop Date: Mon, 13 Mar 2017 13:13:46 +0100 Subject: added tidy check for -> () --- python/tidy/servo_tidy/tidy.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python/tidy/servo_tidy') diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index c8b398ce8ca..fff707a736a 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -565,6 +565,8 @@ def check_rust(file_name, lines): # This particular pattern is not reentrant-safe in script_thread.rs (r"match self.documents.borrow", "use a separate variable for the match expression", lambda match, line: file_name.endswith('script_thread.rs')), + # -> () is unnecessary + (r"-> \(\)", "encountered function signature with -> ()", no_filter), ] for pattern, message, filter_func in regex_rules: -- cgit v1.2.3