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 7ffe4b2 commit 9a89193Copy full SHA for 9a89193
src/renderer/display_list.rs
@@ -72,13 +72,13 @@ impl<'a> fmt::Debug for DisplayList<'a> {
72
73
impl<'a> Display for DisplayList<'a> {
74
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
75
- let lineno_width = self.body.iter().fold(None, |max, set| {
+ let max_lineno = self.body.iter().fold(None, |max, set| {
76
set.display_lines.iter().fold(max, |max, line| match line {
77
DisplayLine::Source { lineno, .. } => std::cmp::max(max, *lineno),
78
_ => max,
79
})
80
});
81
- let lineno_width = match lineno_width {
+ let lineno_width = match max_lineno {
82
None => 0,
83
Some(_max) if self.anonymized_line_numbers => ANONYMIZED_LINE_NUM.len(),
84
Some(0) => 1,
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments