You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// ```/// Data {/// a: "some text data",/// ..Default::default()/// };/// ```#[derive(Default)]pubstructData{a:&str,b:u32,}
gets formatted as:
/// ```/// Data {/// a: "some text data",/// ..Default::default()/// };/// ```#[derive(Default)]pubstructData{a:&str,b:u32,}
Please note the (wrongly) indented closing brace in the doc code block. With hard_tabs = false it works fine.
Tested with rustfmt 0.99.6-nightly (750b252 2018-10-18).
I'd also appreciate it if there was a separate comment_hard_tabs setting (or it simply would always be false), as I think tabs should only be at the beginning of a line, and not within comments - if you're open to it I can open another issue.
The text was updated successfully, but these errors were encountered:
stbuehler
added a commit
to stbuehler/rust-async-dnssd
that referenced
this issue
Oct 28, 2018
* Prune stale issues
Adds regression tests for the following issues which seem to be fixed on
master:
Closes#1762Closes#2388Closes#2672Closes#2755Closes#2947Closes#2978Closes#3148Closes#3206@topecongiro@calebcartwright appologies for the large number of issues
in this commit; if you prefer I can split it up into 2+.
* fixup! Prune stale issues
Hi,
with the following config:
the snippet:
gets formatted as:
Please note the (wrongly) indented closing brace in the doc code block. With
hard_tabs = false
it works fine.Tested with
rustfmt 0.99.6-nightly (750b252 2018-10-18)
.I'd also appreciate it if there was a separate
comment_hard_tabs
setting (or it simply would always befalse
), as I think tabs should only be at the beginning of a line, and not within comments - if you're open to it I can open another issue.The text was updated successfully, but these errors were encountered: