mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Auto merge of #9871 - creativcoder:fix-tidy-single-import, r=Wafflespeanut
tidy fix for longer single line imports Fixes #9864 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9871) <!-- Reviewable:end -->
This commit is contained in:
commit
41864c4524
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue