From abcd68e789805e4892b71892a476e3ee719a0be9 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 17 Jul 2019 19:35:10 +0200 Subject: [PATCH] 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 --- text_processing/src/wcwidth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text_processing/src/wcwidth.rs b/text_processing/src/wcwidth.rs index 0a16cae6..73841e36 100644 --- a/text_processing/src/wcwidth.rs +++ b/text_processing/src/wcwidth.rs @@ -286,7 +286,7 @@ pub fn wcwidth(ucs: WChar) -> Option { ) } -fn wcswidth(mut pwcs: WChar, mut n: usize) -> Option { +pub fn wcswidth(mut pwcs: WChar, mut n: usize) -> Option { let mut width = 0; while pwcs > 0 && n > 0 {