Skip to content

Commit

Permalink
clean: use floor
Browse files Browse the repository at this point in the history
  • Loading branch information
GreasySlug committed Dec 18, 2022
1 parent 293aa52 commit 69dbb2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/erg_parser/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ use TokenKind::*;
macro_rules! debug_call_info {
($self: ident) => {
$self.level += 1;
let space= " ".repeat($self.level);
log!(
c GREEN,
"\n{} ({}) entered {}, cur: {}",
space.replace(" ", "・"),
"・".repeat(($self.level as f32 / 4.0).floor() as usize),
$self.level,
fn_name!(),
$self.peek().unwrap()
Expand Down

0 comments on commit 69dbb2b

Please sign in to comment.