Skip to content

Conversation

@guswynn
Copy link
Contributor

@guswynn guswynn commented May 18, 2022

async-stream! does not always allow its internal's to be formatted, so use the suggestion in here: tokio-rs/async-stream#68 (wrapping the {} in ()) to force rustfmt to run.

Unfortunately, it doesn't seem like this works with tokio::select!. I have another commit to try to fmt the select underneath this by moving the code into a function, but its pretty messy

Motivation

  • This PR refactors existing code.

Testing

  • This PR has adequate test coverage / QA involvement has been duly considered.

Release notes

None

@guswynn guswynn requested review from cjubb39 and petrosagg May 19, 2022 15:50
@guswynn guswynn marked this pull request as ready for review May 19, 2022 15:53
@guswynn guswynn changed the title format async-stream storage: format use of async-stream in source module May 19, 2022
@petrosagg
Copy link
Contributor

Can we do this for all async_stream! invocations?

@guswynn
Copy link
Contributor Author

guswynn commented May 23, 2022

yeah, ill go ahead and update this

@guswynn guswynn requested a review from benesch May 23, 2022 15:55
@guswynn guswynn changed the title storage: format use of async-stream in source module format use of async-stream in source module May 23, 2022
@guswynn guswynn enabled auto-merge (rebase) May 23, 2022 16:12
@guswynn guswynn merged commit fccbe3d into MaterializeInc:main May 23, 2022
@guswynn guswynn deleted the fmt-source-mod branch May 23, 2022 17:29
@guswynn guswynn changed the title format use of async-stream in source module format usages of async-stream May 23, 2022
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.

3 participants