summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-07-17 19:35:10 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-08-02 01:00:53 +0300
commitabcd68e789805e4892b71892a476e3ee719a0be9 (patch)
tree4d07425e76cee73fa5f7d35ee491a63e11b3d1ca
parentfecb66e877e0c6003dd2c9544e27192a4d4fc25f (diff)
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>
-rw-r--r--text_processing/src/wcwidth.rs2
1 files changed, 1 insertions, 1 deletions
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<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 {