fix: remove unnecessary braces around block return value (#1147)

This commit is contained in:
fys
2023-03-09 11:42:04 +08:00
committed by GitHub
parent 757b4a87a0
commit 3414ac46b0

View File

@@ -122,7 +122,7 @@ mod tests {
#[tokio::test]
pub async fn test_entry_stream() {
let stream =
async_stream::stream!({ yield Ok(vec![SimpleEntry::new("test_entry".as_bytes())]) });
async_stream::stream!(yield Ok(vec![SimpleEntry::new("test_entry".as_bytes())]));
let mut stream_impl = EntryStreamImpl {
inner: Box::pin(stream),