more clippy things

This commit is contained in:
Folkert 2020-11-19 22:20:00 +01:00
parent e30893b66e
commit 4db48d9f13
5 changed files with 5 additions and 5 deletions

View file

@ -1263,7 +1263,7 @@ fn patterns_to_when<'a>(
// Even if the body was Ok, replace it with this Err.
// If it was already an Err, leave it at that Err, so the first
// RuntimeError we encountered remains the first.
body = body.and_then(|_| {
body = body.and({
Err(Located {
region: pattern.region,
value,