Merge pull request #378 from sinhpham/fix_376
Fix https://github.com/nrc/rustfmt/issues/376
This commit is contained in:
commit
63860bb777
1 changed files with 2 additions and 1 deletions
|
|
@ -42,7 +42,8 @@ pub fn rewrite_path(context: &RewriteContext,
|
|||
|
||||
if let Some(ref qself) = qself {
|
||||
result.push('<');
|
||||
result.push_str(&pprust::ty_to_string(&qself.ty));
|
||||
let fmt_ty = try_opt!(qself.ty.rewrite(context, width, offset));
|
||||
result.push_str(&fmt_ty);
|
||||
|
||||
if skip_count > 0 {
|
||||
result.push_str(" as ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue