From 65e9ddf5db05cf0ff2024ae70eb886475acf769a Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 8 Jun 2024 20:33:15 +0100 Subject: [PATCH] fix: remove unused GitDir::into_string() function --- crates/config/src/git_dir.rs | 4 ---- crates/config/src/tests.rs | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/config/src/git_dir.rs b/crates/config/src/git_dir.rs index 70698907..3c9aa86d 100644 --- a/crates/config/src/git_dir.rs +++ b/crates/config/src/git_dir.rs @@ -20,10 +20,6 @@ impl GitDir { pub const fn pathbuf(&self) -> &PathBuf { &self.0 } - - pub fn into_string(self) -> String { - self.to_string() - } } impl std::fmt::Display for GitDir { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { diff --git a/crates/config/src/tests.rs b/crates/config/src/tests.rs index ae8f356f..4a47c47c 100644 --- a/crates/config/src/tests.rs +++ b/crates/config/src/tests.rs @@ -724,8 +724,7 @@ mod given { use crate::{ server::{Http, ServerConfig, ServerStorage, Webhook}, - BranchName, ForgeAlias, ForgeConfig, ForgeType, RepoAlias, RepoBranches, ServerRepoConfig, - WebhookId, + ForgeAlias, ForgeConfig, ForgeType, RepoAlias, RepoBranches, ServerRepoConfig, WebhookId, }; pub fn a_name() -> String {