summaryrefslogtreecommitdiffstats
path: root/tests/common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common.rs')
-rw-r--r--tests/common.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/common.rs b/tests/common.rs
index a4924ab74..040732ff0 100644
--- a/tests/common.rs
+++ b/tests/common.rs
@@ -3,11 +3,12 @@ use starship::context::Context;
use starship::modules;
use std::path::PathBuf;
+#[allow(dead_code)]
pub fn render_segment<T>(module: &str, path: T) -> String
where
T: Into<PathBuf>,
{
- render_segment_with_status(module, &path.into(), "0")
+ render_segment_with_status(module, path.into(), "0")
}
pub fn render_segment_with_status<T>(module: &str, path: T, status: &str) -> String