Skip to content

Commit 629d35a

Browse files
authored
add todo comment with issue link
followup of #332
1 parent c604dc4 commit 629d35a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

codespan-reporting/src/term/views.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use crate::term::renderer::{Locus, MultiLabel, Renderer, SingleLabel};
66
use crate::term::Config;
77

88
/// Calculate the number of decimal digits in `n`.
9+
// TODO: simplify after https://github.com/rust-lang/rust/issues/70887 resolves
910
fn count_digits(n: usize) -> usize {
1011
// Use a saturating_add because in that edge case the number of digits
1112
// will not be changed.

0 commit comments

Comments
 (0)