Skip to content

Commit 6d2bd94

Browse files
authored
Merge pull request #277 from Muscraft/cleanup-pub-api
fix!: Remove char_width and str_width from the public API
2 parents 6e42490 + 25a9585 commit 6d2bd94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2664,11 +2664,11 @@ fn num_decimal_digits(num: usize) -> usize {
26642664
MAX_DIGITS
26652665
}
26662666

2667-
pub fn str_width(s: &str) -> usize {
2667+
fn str_width(s: &str) -> usize {
26682668
s.chars().map(char_width).sum()
26692669
}
26702670

2671-
pub fn char_width(ch: char) -> usize {
2671+
fn char_width(ch: char) -> usize {
26722672
// FIXME: `unicode_width` sometimes disagrees with terminals on how wide a `char` is. For now,
26732673
// just accept that sometimes the code line will be longer than desired.
26742674
match ch {

0 commit comments

Comments
 (0)