File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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
6053pub fn get_domain ( origin : & str ) -> Result < & str > {
6154 let domain_regex = Regex :: new ( r"((http[s]?|ssh)://)?(\S+@)?(?P<domain>([^:/])+)" ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments