aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy.py
diff options
context:
space:
mode:
authorRahul Sharma <rsconceptx@gmail.com>2016-03-04 15:35:08 +0530
committerRahul Sharma <rsconceptx@gmail.com>2016-03-07 23:04:03 +0530
commit9e887157e3dfbd72c19c6220e281a86629c6e2ad (patch)
tree7006514f11ee8b26a90d3322e1a04b4e50cecbdb /python/tidy.py
parent12466b87062d8a20bd134bdd5824d46c5216ee48 (diff)
downloadservo-9e887157e3dfbd72c19c6220e281a86629c6e2ad.tar.gz
servo-9e887157e3dfbd72c19c6220e281a86629c6e2ad.zip
tidy fix for longer single line imports
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 35b4f230dbb..a63afba3d78 100644
--- a/python/tidy.py
+++ b/python/tidy.py
@@ -366,7 +366,7 @@ def check_rust(file_name, lines):
if line.startswith("use "):
import_block = True
indent = len(original_line) - len(line)
- if not line.endswith(";"):
+ if not line.endswith(";") and '{' in line:
yield (idx + 1, "use statement spans multiple lines")
# strip "use" from the begin and ";" from the end
current_use = line[4:-1]