Rename to then_some and then

This commit is contained in:
varkor
2019-12-06 12:18:32 +00:00
parent 8579fe6fc3
commit 9f1269f23c
37 changed files with 57 additions and 57 deletions

View File

@@ -645,7 +645,7 @@ impl<'a> Parser<'a> {
break;
}
}
found.to_option(cur)
found.then_some(cur)
}
}