Merge pull request #200 from sinhpham/master

Fix https://github.com/nrc/rustfmt/issues/190
This commit is contained in:
cassiersg 2015-08-24 19:06:02 +02:00
commit cf046b734c
2 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,10 @@ impl<'a> FmtVisitor<'a> {
self.codemap.lookup_char_pos(end));
if start == end {
// Do nothing if this is the beginning of the file.
if start == BytePos(0) {
return;
}
process_last_snippet(self, "", "");
return;
}

View File

@ -0,0 +1,2 @@
fn main() {
}