Browse Source

Make function pub

As this file was written (according to the top-level comment) for this
function, it should be pub.

This fixes an "unused function" warning.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
tags/pre-alpha-0.2.0
Matthias Beyer 3 months ago
parent
commit
abcd68e789
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      text_processing/src/wcwidth.rs

+ 1
- 1
text_processing/src/wcwidth.rs View File

@@ -286,7 +286,7 @@ pub fn wcwidth(ucs: WChar) -> Option<usize> {
)
}

fn wcswidth(mut pwcs: WChar, mut n: usize) -> Option<usize> {
pub fn wcswidth(mut pwcs: WChar, mut n: usize) -> Option<usize> {
let mut width = 0;

while pwcs > 0 && n > 0 {

Loading…
Cancel
Save