Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ignore comma at the end of stream #94

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Conversation

ethe
Copy link
Contributor

@ethe ethe commented Jan 11, 2024

support #93
rustfmt would auto format

pub fn some_tream() -> Option<impl Stream> {
    Some(#[stream] async {
        yield 1;
    })
}

to

pub fn some_tream() -> Option<impl Stream> {
    Some(
        #[stream]
        async {
            yield 1;
        },
    )
}

the comma at the end of stream block should be ignored.

@ethe ethe force-pushed the option_stream branch 3 times, most recently from cdf197a to 26adc58 Compare January 11, 2024 13:53
Copy link
Owner

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@taiki-e taiki-e merged commit a6f86cb into taiki-e:main Jan 12, 2024
8 checks passed
@taiki-e taiki-e linked an issue Jan 12, 2024 that may be closed by this pull request
@taiki-e
Copy link
Owner

taiki-e commented Jan 12, 2024

Published in 0.2.10.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No support of comma follow with async block
2 participants