Way to reformat output code with rustfmt #1031
-
Greetings! Any way to call pub struct RequestContext {
#[prost(string, tag="1")]
<...>
) -> Result<
tonic::Response<super::GetAnatomicoChirurgicalResponse>,
tonic::Status,
>; after: pub struct RequestContext {
#[prost(string, tag = "1")]
<...>
) -> Result<tonic::Response<super::GetAnatomicoChirurgicalResponse>, tonic::Status>; Because I use |
Beta Was this translation helpful? Give feedback.
Answered by
LucioFranco
Jul 7, 2022
Replies: 1 comment 1 reply
-
Tonic has support for |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BratSinot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tonic has support for
prettyplease
to format it. But if you generate the code into your source folder (or any folder really) you can just useCommand
and callrustfmt
if its available in your path. Tonic used to do this before moving toprettyplease
.