fix(cli): remove extra indentation with --cst --no-ranges

(cherry picked from commit 2f33a37dff)
This commit is contained in:
skewb1k 2025-12-23 14:03:12 +03:00 committed by Christian Clason
parent 34602af22c
commit a80765614b

View file

@ -785,7 +785,7 @@ pub fn render_cst<'a, 'b: 'a>(
.map(|(row, col)| (row as f64).log10() as usize + (col.len() as f64).log10() as usize + 1)
.max()
.unwrap_or(1);
let mut indent_level = 1;
let mut indent_level = usize::from(!opts.no_ranges);
let mut did_visit_children = false;
let mut in_error = false;
loop {