We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e353781 commit d6c36a6Copy full SHA for d6c36a6
src/formatter/mod.rs
@@ -54,7 +54,7 @@ pub struct DisplayListFormatter {
54
}
55
56
impl DisplayListFormatter {
57
- pub const ANONYMIZED_LINE_NUM: &'static str = "LL";
+ const ANONYMIZED_LINE_NUM: &'static str = "LL";
58
59
/// Constructor for the struct.
60
///
@@ -89,7 +89,7 @@ impl DisplayListFormatter {
89
..
90
} => {
91
if self.anonymized_line_numbers {
92
- 2 // "LL"
+ Self::ANONYMIZED_LINE_NUM.len()
93
} else {
94
cmp::max(lineno.to_string().len(), max)
95
0 commit comments