Skip to content
New issue

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 is creating my code uncompilable #4615

Closed
manio opened this issue Dec 30, 2020 · 0 comments · Fixed by #5028
Closed

Rustfmt is creating my code uncompilable #4615

manio opened this issue Dec 30, 2020 · 0 comments · Fixed by #5028
Labels

Comments

@manio
Copy link

manio commented Dec 30, 2020

Hi. I think I found a bug in rust fmt.
The following good and compilable code:

        info!(//debug
            "{}: sending function_code={:04x} data={:04x} crc=0x{:04X} data={:02X?}",
            self.name, function_code, data, crc, output_cmd
        );

is wrongly formatted to this:

        info!(
            //debug "{}: sending function_code={:04x} data={:04x} crc=0x{:04X} data={:02X?}",
            self.name, function_code, data, crc, output_cmd
        );

Meta

  • rustfmt version: rustfmt 1.4.14-nightly (a5cb5d2 2020-04-14)
  • From where did you install rustfmt?: rustup
  • How do you run rustfmt: cargo-fmt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants