You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given number of comments related to imports section which @howardwu left in my CLI PR (#632) I suggest adding new rule for grouping imports in .rustfmt.toml file - group_imports.
See param description here (link).
Example output:
use std::path::PathBuf;
use pest_ast::FromPest;
use serde::Serialize;
use crate::ast::Rule;
Motivation
We already have similar code style internally and instead of fixing it manually we can apply new rule to formatter.
damirka
changed the title
[Feature] Add group_imports = "StdExternalCrate" to .rustfmt.toml
[Feature] Add group_imports rule to .rustfmt.toml
Feb 9, 2021
🚀 Feature
Given number of comments related to imports section which @howardwu left in my CLI PR (#632) I suggest adding new rule for grouping imports in .rustfmt.toml file -
group_imports
.See param description here (link).
Example output:
Motivation
We already have similar code style internally and instead of fixing it manually we can apply new rule to formatter.
Implementation
The text was updated successfully, but these errors were encountered: