summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-07-17 19:27:50 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-07-17 19:32:11 +0200
commite1242c903e7e51df396261989196a1a3864f3f00 (patch)
treea18015308e9068507dd5dfa03990600b9503e066
parent723630f8cfbe9c30ec2a6a7dc39fa6f8b08b73e9 (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--melib/src/wcwidth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/wcwidth.rs b/melib/src/wcwidth.rs
index 0a16cae6..73841e36 100644
--- a/melib/src/wcwidth.rs
+++ b/melib/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 {