Merge pull request #203 from cassiersg/fix-190

Fix #190 for submodules
This commit is contained in:
cassiersg
2015-08-24 22:03:30 +02:00
4 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ fn format_missing_inner<F: Fn(&mut FmtVisitor, &str, &str)>(&mut self,
if start == end {
// Do nothing if this is the beginning of the file.
if start == BytePos(0) {
if start == self.codemap.lookup_char_pos(start).file.start_pos {
return;
}
process_last_snippet(self, "", "");
+1
View File
@@ -1,3 +1,4 @@
// Some nested mods
mod nestedmod;
mod no_new_line_beginning;
+2
View File
@@ -0,0 +1,2 @@
fn main() {
}
+1
View File
@@ -1,3 +1,4 @@
// Some nested mods
mod nestedmod;
mod no_new_line_beginning;