File tree 2 files changed +1
-5
lines changed
git-repository/src/clone/fetch
2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,6 @@ impl<'event> File<'event> {
125
125
. ok_or ( lookup:: existing:: Error :: SectionMissing ) ?;
126
126
let mut maybe_ids = None ;
127
127
if let Some ( subsection_name) = subsection_name {
128
- let subsection_name: & BStr = subsection_name. into ( ) ;
129
128
for node in section_ids {
130
129
if let SectionBodyIdsLut :: NonTerminal ( subsection_lookup) = node {
131
130
maybe_ids = subsection_lookup. get ( subsection_name) . map ( |v| v. iter ( ) . copied ( ) ) ;
Original file line number Diff line number Diff line change @@ -204,10 +204,7 @@ fn setup_branch_config(
204
204
let mut section = config
205
205
. new_section ( "branch" , Some ( Cow :: Owned ( short_name. into ( ) ) ) )
206
206
. expect ( "section header name is always valid per naming rules, our input branch name is valid" ) ;
207
- section. push (
208
- "remote" . try_into ( ) . expect ( "valid at compile time" ) ,
209
- Some ( remote_name. into ( ) ) ,
210
- ) ;
207
+ section. push ( "remote" . try_into ( ) . expect ( "valid at compile time" ) , Some ( remote_name) ) ;
211
208
section. push (
212
209
"merge" . try_into ( ) . expect ( "valid at compile time" ) ,
213
210
Some ( branch. as_bstr ( ) ) ,
You can’t perform that action at this time.
0 commit comments