From: Sinh Pham Date: Sun, 27 Sep 2015 14:09:08 +0000 (-0400) Subject: Fix https://github.com/nrc/rustfmt/issues/376 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=11ed3c81d552028964c52270e0e423267085c985;p=rust.git Fix https://github.com/nrc/rustfmt/issues/376 --- diff --git a/src/types.rs b/src/types.rs index 33446765c8c..5d8978ec554 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 ");