aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy/tidy.py
diff options
context:
space:
mode:
authorPer Lundberg <perlun@gmail.com>2016-04-21 22:42:15 +0300
committerPer Lundberg <perlun@gmail.com>2016-04-21 22:42:35 +0300
commit4643737a1bc7922ec5e7e346a490e642f89ed052 (patch)
tree5f238c6a7c940ad2705cbe5b5e072c9e84c1543b /python/tidy/servo_tidy/tidy.py
parentd0489f1160419570b692a8729184ed833c93a433 (diff)
downloadservo-4643737a1bc7922ec5e7e346a490e642f89ed052.tar.gz
servo-4643737a1bc7922ec5e7e346a490e642f89ed052.zip
Applied a bunch of suggestions from Simon.
Diffstat (limited to 'python/tidy/servo_tidy/tidy.py')
-rw-r--r--python/tidy/servo_tidy/tidy.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py
index 12a8633297f..0baa11dfe90 100644
--- a/python/tidy/servo_tidy/tidy.py
+++ b/python/tidy/servo_tidy/tidy.py
@@ -277,9 +277,7 @@ def check_toml(file_name, lines):
def check_rust(file_name, lines):
if not file_name.endswith(".rs") or \
- file_name.endswith("properties.mako.rs") or \
- file_name.find("properties/longhand") or \
- file_name.find("properties/shorthand") or \
+ file_name.endswith(".mako.rs") or \
file_name.endswith(os.path.join("style", "build.rs")) or \
file_name.endswith(os.path.join("geckolib", "build.rs")) or \
file_name.endswith(os.path.join("unit", "style", "stylesheets.rs")):