From 07dac9732d65dcb1f5aefc8be46ba366fb657d08 Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Thu, 7 Apr 2016 04:13:34 +0000 Subject: [PATCH] Fix tidy errors --- src/librustc_resolve/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index e8adb1d94ba4d..3f18aa3565402 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -1902,7 +1902,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> { }).map_err(|error_reported| { self.record_def(eq_pred.id, err_path_resolution()); if error_reported { return } - resolve_error(self, eq_pred.span, ResolutionError::UndeclaredAssociatedType); + let error_variant = ResolutionError::UndeclaredAssociatedType; + resolve_error(self, eq_pred.span, error_variant); }).unwrap_or(()); } } @@ -3042,7 +3043,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> { self.record_def(expr.id, err_path_resolution()); if let Ok(Def::Struct(..)) = type_res.map(|r| r.base_def) { - let error_variant = ResolutionError::StructVariantUsedAsFunction(&path_name); + let error_variant = + ResolutionError::StructVariantUsedAsFunction(&path_name); let mut err = resolve_struct_error(self, expr.span, error_variant); let msg = format!("did you mean to write: `{} {{ /* fields */ }}`?",