From 08169250954d62d9145aa9b819000edd904e75a6 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Sat, 16 Oct 2021 13:02:59 +0200 Subject: make util functions world public --- src/util/formatting.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/formatting.rs') diff --git a/src/util/formatting.rs b/src/util/formatting.rs index add3f1b..c1b6257 100644 --- a/src/util/formatting.rs +++ b/src/util/formatting.rs @@ -1,7 +1,7 @@ /// Truncates a string after a certain number of characters. /// Function always tries to truncate on a word boundary. /// Reimplemented from gonzobot. -pub(crate) fn truncate(text: &str, len: usize) -> String { +pub fn truncate(text: &str, len: usize) -> String { if text.len() <= len { return text.to_string(); } -- cgit v1.2.3