Skip to content

Commit 5a7c068

Browse files
committed
reduce rightward drift in logging output
1 parent f68857f commit 5a7c068

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ast.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl AutoLogParse {
3131
println!();
3232
}
3333

34-
let indent: String = (0..*depth.borrow() * 4).map(|_| ' ').collect();
34+
let indent: String = (0..*depth.borrow() * 1).map(|_| ' ').collect();
3535
log!(
3636
"{}({} \"{}\"",
3737
indent,
@@ -55,7 +55,7 @@ impl Drop for AutoLogParse {
5555
fn drop(&mut self) {
5656
LOG_DEPTH.with(|depth| {
5757
*depth.borrow_mut() -= 1;
58-
let indent: String = (0..*depth.borrow() * 4).map(|_| ' ').collect();
58+
let indent: String = (0..*depth.borrow() * 1).map(|_| ' ').collect();
5959
log!("{})", indent);
6060
});
6161
}
@@ -94,7 +94,7 @@ impl AutoLogDemangle {
9494
println!();
9595
}
9696

97-
let indent: String = (0..*depth.borrow() * 4).map(|_| ' ').collect();
97+
let indent: String = (0..*depth.borrow() * 1).map(|_| ' ').collect();
9898
log!("{}(", indent);
9999
log!(
100100
"{} {}{:?}",
@@ -131,7 +131,7 @@ impl Drop for AutoLogDemangle {
131131
fn drop(&mut self) {
132132
LOG_DEPTH.with(|depth| {
133133
*depth.borrow_mut() -= 1;
134-
let indent: String = (0..*depth.borrow() * 4).map(|_| ' ').collect();
134+
let indent: String = (0..*depth.borrow() * 1).map(|_| ' ').collect();
135135
log!("{})", indent);
136136
});
137137
}

0 commit comments

Comments
 (0)