From 2b2eff15cdfedce296b68ffefca367346291c85e Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Mon, 28 May 2018 10:57:26 -0700 Subject: Fix tidy --- src/librustc_typeck/check/method/suggest.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/librustc_typeck/check/method/suggest.rs b/src/librustc_typeck/check/method/suggest.rs index 4d4e9191378..8213bd217b8 100644 --- a/src/librustc_typeck/check/method/suggest.rs +++ b/src/librustc_typeck/check/method/suggest.rs @@ -386,7 +386,9 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> { if let Some(expr) = rcvr_expr { err.span_suggestion(expr.span.to(span), "use associated function syntax intead", - format!("{}::{}", self.ty_to_string(actual), item_name)); + format!("{}::{}", + self.ty_to_string(actual), + item_name)); } else { err.help(&format!("try with `{}::{}`", self.ty_to_string(actual), item_name)); -- cgit 1.4.1-3-g733a5