Skip to content

Commit 07dac97

Browse files
committed
Fix tidy errors
1 parent 35f5e18 commit 07dac97

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_resolve/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
19021902
}).map_err(|error_reported| {
19031903
self.record_def(eq_pred.id, err_path_resolution());
19041904
if error_reported { return }
1905-
resolve_error(self, eq_pred.span, ResolutionError::UndeclaredAssociatedType);
1905+
let error_variant = ResolutionError::UndeclaredAssociatedType;
1906+
resolve_error(self, eq_pred.span, error_variant);
19061907
}).unwrap_or(());
19071908
}
19081909
}
@@ -3042,7 +3043,8 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> {
30423043
self.record_def(expr.id, err_path_resolution());
30433044

30443045
if let Ok(Def::Struct(..)) = type_res.map(|r| r.base_def) {
3045-
let error_variant = ResolutionError::StructVariantUsedAsFunction(&path_name);
3046+
let error_variant =
3047+
ResolutionError::StructVariantUsedAsFunction(&path_name);
30463048
let mut err = resolve_struct_error(self, expr.span, error_variant);
30473049

30483050
let msg = format!("did you mean to write: `{} {{ /* fields */ }}`?",

0 commit comments

Comments
 (0)