Skip to content

Commit 02386e1

Browse files
committed
Appease clippy.
1 parent 6e044b8 commit 02386e1

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

src/remotes/gitlab.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn query_gitlab_project_id(remote: &GitLab) -> Result<i64> {
9797
let url = &format!(
9898
"{}/projects/{}",
9999
remote.api_root,
100-
remote.full_path.replace("/", "%2F")
100+
remote.full_path.replace('/', "%2F")
101101
);
102102
trace!("Attempting direct project ID lookup: {}", url);
103103
let resp = query_gitlab_api(url, &remote.api_key);

src/remotes/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ impl fmt::Display for dyn Remote {
4949
}
5050
}
5151

52-
/// Debug a remote
53-
impl fmt::Debug for dyn Remote {
54-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
55-
write!(f, "{:?}", self)
56-
}
57-
}
58-
5952
/// Get the domain from an origin URL
6053
pub fn get_domain(origin: &str) -> Result<&str> {
6154
let domain_regex = Regex::new(r"((http[s]?|ssh)://)?(\S+@)?(?P<domain>([^:/])+)").unwrap();

0 commit comments

Comments
 (0)