use syntax::source_map::{BytePos, Pos, Span};
-use source_map::LineRangeUtils;
use comment::{rewrite_comment, CodeCharKind, CommentCodeSlices};
use config::{EmitMode, FileName};
use shape::{Indent, Shape};
+use source_map::LineRangeUtils;
use utils::{count_newlines, last_line_width, mk_sp};
use visitor::FmtVisitor;
self.push_str("\n");
status.last_wspace = None;
} else {
- self.push_str(&snippet[status.line_start..i + 1]);
+ self.push_str(&snippet[status.line_start..=i]);
}
status.cur_line += 1;