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>
embed
Matthias Beyer 2019-07-17 19:35:10 +02:00 committed by Manos Pitsidianakis
parent fecb66e877
commit abcd68e789
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 1 deletions

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 {