use idiomatic formatting
Also, remove needless else
This commit is contained in:
parent
e7acd078f4
commit
b651679d90
1 changed files with 13 additions and 12 deletions
|
@ -803,7 +803,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
||||||
while let Some(arg) = walk.next() {
|
while let Some(arg) = walk.next() {
|
||||||
if arg == param_to_point_at {
|
if arg == param_to_point_at {
|
||||||
return true;
|
return true;
|
||||||
} else if let ty::GenericArgKind::Type(ty) = arg.unpack()
|
}
|
||||||
|
if let ty::GenericArgKind::Type(ty) = arg.unpack()
|
||||||
&& let ty::Alias(ty::Projection, ..) = ty.kind()
|
&& let ty::Alias(ty::Projection, ..) = ty.kind()
|
||||||
{
|
{
|
||||||
// This logic may seem a bit strange, but typically when
|
// This logic may seem a bit strange, but typically when
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue