@@ -91,7 +91,7 @@ pub fn set_project_config(field_name: &str, value: &str) {
9191/// Get a value for the given global git-req config
9292pub fn get_req_config ( domain : & str , field : & str ) -> Option < String > {
9393 let slug = slugify_domain ( domain) ;
94- let cfg = Config :: open ( & Path :: new (
94+ let cfg = Config :: open ( Path :: new (
9595 & shellexpand:: tilde ( "~/.gitreqconfig" ) . to_string ( ) ,
9696 ) )
9797 . unwrap ( ) ;
@@ -101,7 +101,7 @@ pub fn get_req_config(domain: &str, field: &str) -> Option<String> {
101101/// Set a value for the global git-req configuration
102102pub fn set_req_config ( domain : & str , field : & str , value : & str ) {
103103 let slug = slugify_domain ( domain) ;
104- let mut cfg = Config :: open ( & Path :: new (
104+ let mut cfg = Config :: open ( Path :: new (
105105 & shellexpand:: tilde ( "~/.gitreqconfig" ) . to_string ( ) ,
106106 ) )
107107 . unwrap ( ) ;
@@ -112,7 +112,7 @@ pub fn set_req_config(domain: &str, field: &str, value: &str) {
112112/// Clear the value for the lobal git-req configuration
113113pub fn delete_req_config ( domain : & str , field : & str ) -> Result < ( ) , git2:: Error > {
114114 let slug = slugify_domain ( domain) ;
115- let mut cfg = Config :: open ( & Path :: new (
115+ let mut cfg = Config :: open ( Path :: new (
116116 & shellexpand:: tilde ( "~/.gitreqconfig" ) . to_string ( ) ,
117117 ) )
118118 . unwrap ( ) ;
@@ -215,12 +215,12 @@ pub fn checkout_branch(
215215 }
216216 Err ( _) => {
217217 // Fetch the remote branch if there's no local branch with the correct name
218- let mut fetch_args = vec ! [ "fetch" , & remote_name] ;
218+ let mut fetch_args = vec ! [ "fetch" , remote_name] ;
219219 let remote_to_local_binding = format ! ( "{}:{}" , remote_branch_name, local_branch_name) ;
220220 fetch_args. push ( if is_virtual_remote_branch {
221221 & remote_to_local_binding
222222 } else {
223- & remote_branch_name
223+ remote_branch_name
224224 } ) ;
225225 if cmd ( "git" , fetch_args) . run ( ) . is_err ( ) {
226226 return Err ( anyhow ! (
0 commit comments