This commit is contained in:
Sinh Pham 2015-08-22 18:08:11 -04:00
parent 3c6f623385
commit 49cae9c485
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() {
}