Skip to content

Commit

Permalink
tidy fix for longer single line imports
Browse files Browse the repository at this point in the history
  • Loading branch information
creativcoder committed Mar 7, 2016
1 parent 12466b8 commit 9e88715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tidy.py
Expand Up @@ -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]
Expand Down

0 comments on commit 9e88715

Please sign in to comment.