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
normalize_comments = true
Input:
struct A { x: usize, /* protected int[] observed; */ /* (int, int)[] stack; */ }
Expected output:
struct A { x: usize, /* protected int[] observed; * (int, int)[] stack; */ }
or
struct A { x: usize, // protected int[] observed; // (int, int)[] stack; }
Actual output:
struct A { x: usize, /* protected int[] observed; */ * (int, int)[] stack; */ }
The text was updated successfully, but these errors were encountered:
This seems to be caused by having either normalize_comments = true or format_code_in_doc_comments = true.
format_code_in_doc_comments = true
Sorry, something went wrong.
wrap_comments also does this, but I got a slightly different behaviour.
const HOLLIDAYS: &[(Color, &str)] = &[ (Color::rgb(0, 0, 0xE7), "Name"), // (Color::rgb(r, g, b)"#feda00", "A"), // (Color::rgb(r, g, b)"#06cc00", "B"), // (Color::rgb(r, g, b)"#0000ff", "C"), // (Color::rgb(r, g, b)"#00e5d4", "D"), ];
became
const HOLLIDAYS: &[(Color, &str)] = &[ (Color::rgb(0, 0, 0xE7), "Name"), /* (Color::rgb(r, g, b)"#feda00", "A"), * (Color::rgb(r, g, b)"#06cc00", "B"), * (Color::rgb(r, g, b)"#0000ff", "C"), * (Color::rgb(r, g, b)"#00e5d4", "D"), */ ];
Successfully merging a pull request may close this issue.
Input:
Expected output:
or
Actual output:
The text was updated successfully, but these errors were encountered: