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 Manos Pitsidianakis <el13635@mail.ntua.gr> 7 months ago
parent
commit
abcd68e789
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS. GPG Key ID: 73627C2F690DF710
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