Reformat the changed line to make tidy happy

This commit is contained in:
Ilya Yanok 2021-10-28 13:23:49 +00:00
parent 6c61db4407
commit 6f942a2f4a

View File

@ -1547,8 +1547,9 @@ fn candidate_should_be_dropped_in_favor_of(
// Check if a bound would previously have been removed when normalizing
// the param_env so that it can be given the lowest priority. See
// #50825 for the motivation for this.
let is_global =
|cand: &ty::PolyTraitRef<'tcx>| cand.is_global(self.infcx.tcx) && !cand.has_late_bound_regions();
let is_global = |cand: &ty::PolyTraitRef<'tcx>| {
cand.is_global(self.infcx.tcx) && !cand.has_late_bound_regions()
};
// (*) Prefer `BuiltinCandidate { has_nested: false }`, `PointeeCandidate`,
// and `DiscriminantKindCandidate` to anything else.