Skip to content

Conversation

@lispwisp
Copy link

@lispwisp lispwisp commented May 13, 2024

This just simplifies:

enum Data {
None,
Bytes(Vec<u8>),
Stream(Pin<Box<dyn Stream<Item = anyhow::Result<Bytes>>>>),
}

to this

type Data = Option<Pin<Box<dyn Stream<Item = anyhow::Result<Bytes>>>>>;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant