Skip to content

Commit 10f4f21

Browse files
committed
thanks clippy
1 parent 340dcad commit 10f4f21

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

git-config/src/file/util.rs

-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ impl<'event> File<'event> {
125125
.ok_or(lookup::existing::Error::SectionMissing)?;
126126
let mut maybe_ids = None;
127127
if let Some(subsection_name) = subsection_name {
128-
let subsection_name: &BStr = subsection_name.into();
129128
for node in section_ids {
130129
if let SectionBodyIdsLut::NonTerminal(subsection_lookup) = node {
131130
maybe_ids = subsection_lookup.get(subsection_name).map(|v| v.iter().copied());

git-repository/src/clone/fetch/util.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,7 @@ fn setup_branch_config(
204204
let mut section = config
205205
.new_section("branch", Some(Cow::Owned(short_name.into())))
206206
.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));
211208
section.push(
212209
"merge".try_into().expect("valid at compile time"),
213210
Some(branch.as_bstr()),

0 commit comments

Comments
 (0)