Skip to content

Commit

Permalink
fix not constructing YieldType::Future
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdotink committed Jan 8, 2024
1 parent df8c08a commit c96a3a7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions zap/src/parser/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,7 @@ impl<'src> Converter<'src> {
match self.str_opt("yield_type", "yield", opts) {
("yield", ..) => YieldType::Yield,
("promise", ..) => YieldType::Promise,
("future", span) => {
if let Some(span) = span {
self.report(Report::AnalyzeInvalidOptValue {
span,
expected: "`yield`, or `promise`",
});
}

YieldType::Yield
}
("future", ..) => YieldType::Future,

(_, Some(span)) => {
self.report(Report::AnalyzeInvalidOptValue {
Expand Down

0 comments on commit c96a3a7

Please sign in to comment.