6 Commits

Author SHA1 Message Date
topecongiro
9d47e7370e Use SnippetProvider to implement SpanUtils over CodeMap
`SnippetProvider::span_to_snippet` avoids allocating a `String` so it is more
efficient than `CodeMap::span_to_snippet`.
2018-02-19 12:55:12 +09:00
topecongiro
eb9cafb440 Move rewrite_mod to the items module 2018-02-18 01:38:31 +09:00
Christopher Armstrong
bd0facd4ce only wrap on trailing comments, allow /* */ comments in-line 2018-02-16 21:52:08 -06:00
Christopher Armstrong
b2d57b927e use contains_comment instead of an ad-hoc check for "//" 2018-02-16 14:14:34 -06:00
Christopher Armstrong
f5c46559d6 hacky solution that makes the tests pass but should really be better 2018-02-16 14:14:34 -06:00
topecongiro
4af2aa3a9e Create rustfmt_core crate 2018-02-07 22:48:05 +09:00