-
Notifications
You must be signed in to change notification settings - Fork 940
Open
Labels
a-imports`use` syntax`use` syntax
Description
Imports that could fit on a single line are unnecessarily wrapped:
/* 50 characters:
0 1 2 3 4 5
12345678901234567890123456789012345678901234567890
*/
use aaaaaaaaa::{bbbbbbbbb, ccccccccc, ddddddddd};
After rustfmt --config max_width=50
:
/* 50 characters:
0 1 2 3 4 5
12345678901234567890123456789012345678901234567890
*/
use aaaaaaaaa::{
bbbbbbbbb, ccccccccc, ddddddddd,
};
The use
declaration is only 49 characters but gets wrapped anyway. This also happens with the default max_width
of 100 (use
declarations > 98 characters get wrapped).
Metadata
Metadata
Assignees
Labels
a-imports`use` syntax`use` syntax
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
use
declarations are limited to 5 characters less thanmax_width
#5914