Skip to content

Commit dc9f348

Browse files
authored
remove comments that reference issue #199
- they no longer describe what's in that ticket (after a few refactorings) - they suggest optimization, but I don't if it's needed resolves #199 (by virtue of not doing it)
1 parent c3ff6d5 commit dc9f348

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/util/output.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,6 @@ impl IndentHandler {
349349
}
350350

351351
fn get_indentation_info(&mut self, ch: Option<char>, state: WritingState) -> IndentInfo<'_> {
352-
// #199: I have a number of branches here. Can I nest some of them, so that in the happy path of a non-newline
353-
// char, I just have a single check?
354352
let mut indent_builder = StaticIndentInfo::new(state);
355353

356354
// If we have any pending blocks, handle those first. We need to add a paragraph break, unless the first block
@@ -383,7 +381,6 @@ impl IndentHandler {
383381

384382
// Append the new blocks, and then write the indent if we need it.
385383
// When we write that indent, though, only write it until the first new Indent (exclusive).
386-
// (#199 that doesn't seem to actually how this code is organized. See the #199 comment above.)
387384
let range = if need_full_indent {
388385
let indent_end_idx = self.blocks.len()
389386
+ self

0 commit comments

Comments
 (0)