We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb8a508 commit e1a6ae6Copy full SHA for e1a6ae6
async-stream-impl/src/lib.rs
@@ -114,6 +114,8 @@ impl VisitMut for Scrub<'_> {
114
syn::Expr::Yield(yield_expr) => {
115
self.has_yielded = true;
116
117
+ syn::visit_mut::visit_expr_yield_mut(self, yield_expr);
118
+
119
let value_expr = yield_expr.expr.as_ref().unwrap_or(&self.unit);
120
121
// let ident = &self.yielder;
async-stream/tests/try_stream.rs
@@ -78,3 +78,10 @@ async fn multi_try() {
78
values
79
);
80
}
81
82
+#[allow(unused)]
83
+fn issue_65() -> impl Stream<Item = Result<u32, ()>> {
84
+ try_stream! {
85
+ yield Err(())?;
86
+ }
87
+}
0 commit comments