Skip to content

Commit

Permalink
add todo comment with issue link
Browse files Browse the repository at this point in the history
followup of #332
  • Loading branch information
Johann150 authored Aug 11, 2021
1 parent c604dc4 commit 629d35a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codespan-reporting/src/term/views.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use crate::term::renderer::{Locus, MultiLabel, Renderer, SingleLabel};
use crate::term::Config;

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

0 comments on commit 629d35a

Please sign in to comment.