We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustfmt requires multiple runs to generate consistent output for this input code:
fn zserio_read(&mut self, reader: &mut BitReader) -> Result<()> { self.headers = vec![crate::reference_modules::parameter_passing::index_operator::block_header::BlockHeader::new(); headers_array_length]; self.blocks = vec![crate::reference_modules::parameter_passing::index_operator::block::Block::new(); blocks_array_length]; }
After a first pass the code is updated to this:
fn zserio_read(&mut self, reader: &mut BitReader) -> Result<()> { self.headers = vec![crate::reference_modules::parameter_passing::index_operator::block_header::BlockHeader::new(); headers_array_length]; self.blocks = vec![ crate::reference_modules::parameter_passing::index_operator::block::Block::new(); blocks_array_length ]; }
And after a second pass it moves the vec! invocation to the line with the assignment:
vec!
after this rustfmt is happy an running it again creates no further changes.
The text was updated successfully, but these errors were encountered:
Thanks for the report. The indentation on the second vec![] looks off to me too.
vec![]
Sorry, something went wrong.
No branches or pull requests
rustfmt requires multiple runs to generate consistent output for this input code:
After a first pass the code is updated to this:
And after a second pass it moves the
vec!
invocation to the line with the assignment:after this rustfmt is happy an running it again creates no further changes.
The text was updated successfully, but these errors were encountered: