Skip to content

Commit

Permalink
Fix unicode-width feature spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Aug 2, 2022
1 parent 989321a commit 20a857a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/style.rs
Expand Up @@ -36,12 +36,12 @@ fn segment(s: &str) -> Vec<Box<str>> {
s.chars().map(|x| x.to_string().into()).collect()
}

#[cfg(feature = "unicode_width")]
#[cfg(feature = "unicode-width")]
fn measure(s: &str) -> usize {
unicode_width::UnicodeWidthStr::width(s)
}

#[cfg(not(feature = "unicode_width"))]
#[cfg(not(feature = "unicode-width"))]
fn measure(s: &str) -> usize {
s.chars().count()
}
Expand Down

0 comments on commit 20a857a

Please sign in to comment.