From 586dbb4cd4a89aae4c1e6919824a997c286bb625 Mon Sep 17 00:00:00 2001 From: khyernet Date: Fri, 3 May 2024 12:52:58 -0800 Subject: [PATCH] fix: make whitespace remover public --- src/strings/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings/mod.rs b/src/strings/mod.rs index c5b4061..6e214be 100644 --- a/src/strings/mod.rs +++ b/src/strings/mod.rs @@ -33,7 +33,7 @@ pub fn get_str(module: &str, symbol: &str) -> String { remove_trailing_whitespace(string) } -fn remove_trailing_whitespace(string: impl ToString) -> String { +pub fn remove_trailing_whitespace(string: impl ToString) -> String { let mut string = string.to_string(); if string.len() == 0 { return string } let chars = string.chars().collect::>();