Trim the indentation on macros which heuristically appear to use block-style indentation (#3178)

This commit is contained in:
Kevin Stenerson 2018-11-07 01:49:53 -07:00 committed by Seiichi Uchida
parent 16d5f507b6
commit cd8bb50aea
6 changed files with 62 additions and 12 deletions

View file

@ -749,7 +749,7 @@ impl ConfigCodeBlock {
.code_block
.as_ref()
.unwrap()
.split('\n')
.lines()
.nth(0)
.unwrap_or("")
== "#![rustfmt::skip]";