Remove an unnecessary check in rustfmt.
"{{root}}" is an internal-only name, and cannot appear in Rust code
being formatted.
This commit is contained in:
parent
1edf201937
commit
b95d39d37a
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ impl UseSegment {
|
|||
modsep: bool,
|
||||
) -> Option<UseSegment> {
|
||||
let name = rewrite_ident(context, path_seg.ident);
|
||||
if name.is_empty() || name == "{{root}}" {
|
||||
if name.is_empty() {
|
||||
return None;
|
||||
}
|
||||
let kind = match name {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue