Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Nov 24, 2022
1 parent fe5cab9 commit cf18d0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion git-config/src/file/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ impl<'event> File<'event> {
.ok_or(lookup::existing::Error::SectionMissing)?;
let mut maybe_ids = None;
if let Some(subsection_name) = subsection_name {
let subsection_name: &BStr = subsection_name.into();
for node in section_ids {
if let SectionBodyIdsLut::NonTerminal(subsection_lookup) = node {
maybe_ids = subsection_lookup.get(subsection_name).map(|v| v.iter().copied());
Expand Down
5 changes: 1 addition & 4 deletions git-repository/src/clone/fetch/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,7 @@ fn setup_branch_config(
let mut section = config
.new_section("branch", Some(Cow::Owned(short_name.into())))
.expect("section header name is always valid per naming rules, our input branch name is valid");
section.push(
"remote".try_into().expect("valid at compile time"),
Some(remote_name.into()),
);
section.push("remote".try_into().expect("valid at compile time"), Some(remote_name));
section.push(
"merge".try_into().expect("valid at compile time"),
Some(branch.as_bstr()),
Expand Down

0 comments on commit cf18d0d

Please sign in to comment.