1
Fork 0

Remove unnecessary arm in check_expr_yield

This commit is contained in:
Michael Goulet 2023-12-23 04:10:27 +00:00
parent d6d7a93866
commit 85d2b6e3f3
2 changed files with 1 additions and 16 deletions

View file

@ -2071,12 +2071,6 @@ pub enum YieldSource {
Yield,
}
impl YieldSource {
pub fn is_await(&self) -> bool {
matches!(self, YieldSource::Await { .. })
}
}
impl fmt::Display for YieldSource {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(match self {