@@ -141,7 +141,7 @@ impl GitRemote {
141141 fn fetch_into ( & self , dst : & mut git2:: Repository , cargo_config : & Config ) -> CargoResult < ( ) > {
142142 // Create a local anonymous remote in the repository to fetch the url
143143 let refspec = "refs/heads/*:refs/heads/*" ;
144- fetch ( dst, & self . url . as_str ( ) , refspec, cargo_config)
144+ fetch ( dst, self . url . as_str ( ) , refspec, cargo_config)
145145 }
146146
147147 fn clone_into ( & self , dst : & Path , cargo_config : & Config ) -> CargoResult < git2:: Repository > {
@@ -152,7 +152,7 @@ impl GitRemote {
152152 let mut repo = init ( dst, true ) ?;
153153 fetch (
154154 & mut repo,
155- & self . url . as_str ( ) ,
155+ self . url . as_str ( ) ,
156156 "refs/heads/*:refs/heads/*" ,
157157 cargo_config,
158158 ) ?;
@@ -395,7 +395,7 @@ impl<'a> GitCheckout<'a> {
395395 } ;
396396 // Fetch data from origin and reset to the head commit
397397 let refspec = "refs/heads/*:refs/heads/*" ;
398- fetch ( & mut repo, & url, refspec, cargo_config) . chain_err ( || {
398+ fetch ( & mut repo, url, refspec, cargo_config) . chain_err ( || {
399399 internal ( format ! (
400400 "failed to fetch submodule `{}` from {}" ,
401401 child. name( ) . unwrap_or( "" ) ,
0 commit comments