Remove unnecessary arm in check_expr_yield
This commit is contained in:
parent
d6d7a93866
commit
85d2b6e3f3
2 changed files with 1 additions and 16 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue