From 11ed3c81d552028964c52270e0e423267085c985 Mon Sep 17 00:00:00 2001 From: Sinh Pham Date: Sun, 27 Sep 2015 10:09:08 -0400 Subject: [PATCH] Fix https://github.com/nrc/rustfmt/issues/376 --- src/types.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index 33446765c8c7..5d8978ec5549 100644 --- a/src/types.rs +++ b/src/types.rs @@ -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 ");