Skip to content

Commit

Permalink
Merge pull request #335 from mgeisler/remove-display-width-inline
Browse files Browse the repository at this point in the history
Stop inlining `display_width`
  • Loading branch information
mgeisler authored May 3, 2021
2 parents ff5d8b3 + 55bada0 commit 0e4f3d0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ fn ch_width(ch: char) -> usize {
/// [Unicode equivalence]: https://en.wikipedia.org/wiki/Unicode_equivalence
/// [CJK characters]: https://en.wikipedia.org/wiki/CJK_characters
/// [emoji modifier sequences]: https://unicode.org/emoji/charts/full-emoji-modifiers.html
#[inline]
pub fn display_width(text: &str) -> usize {
let mut chars = text.chars();
let mut width = 0;
Expand Down

0 comments on commit 0e4f3d0

Please sign in to comment.