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
parent
fecb66e877
commit
abcd68e789
|
@ -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…
Reference in New Issue