Skip to content

Commit

Permalink
refactor: Break out parts of verbosity calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka authored and epage committed Sep 26, 2024
1 parent 02ddbef commit 4e3f4e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ impl<L: LogLevel> Verbosity<L> {
}

fn verbosity(&self) -> i8 {
level_value(L::default()) - (self.quiet as i8) + (self.verbose as i8)
let default_verbosity = level_value(L::default());
let verbosity = default_verbosity - (self.quiet as i8) + (self.verbose as i8);
verbosity
}
}

Expand Down

0 comments on commit 4e3f4e5

Please sign in to comment.