From b708ae81e8c66ead4965f2dcf23f5040bc528a55 Mon Sep 17 00:00:00 2001
From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr>
Date: Mon, 26 Sep 2022 15:55:56 +0200
Subject: [PATCH] src/prune.rs functions get_str & string_convert are now
 visible to the current crate

---
 src/prune.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/prune.rs b/src/prune.rs
index d9bd2ac..a8a2629 100644
--- a/src/prune.rs
+++ b/src/prune.rs
@@ -174,7 +174,7 @@ fn handle_boolean_options(sd: &Prune) -> Vec<String> {
 /// - val The value to convert
 /// # Return
 /// The value in string form
-fn string_convert(val: Option<usize>) -> String {
+pub(crate) fn string_convert(val: Option<usize>) -> String {
     match val {
         Some(n) => n.to_string(),
         None => String::from(""),
@@ -186,7 +186,7 @@ fn string_convert(val: Option<usize>) -> String {
 /// - val The string to convert
 /// # Return
 /// The value in string form
-fn get_str(val: &Option<String>) -> String {
+pub(crate) fn get_str(val: &Option<String>) -> String {
     match val {
         Some(n) => n.to_owned(),
         None => String::from(""),
-- 
GitLab