Skip to content

Commit

Permalink
Fixed clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
f-str committed May 6, 2024
1 parent 15a70f4 commit 5a30c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gitconfig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl GitConfig {
if trimmed_line.starts_with('[') && trimmed_line.ends_with(']') {
// Extract section name
let section_name = trimmed_line[1..trimmed_line.len() - 1].to_owned();
current_section = section_name.clone();
current_section = section_name.clone_from(&section_name);

// Create section entry in the git_config
git_config.sections.entry(section_name).or_default();
Expand Down

0 comments on commit 5a30c2c

Please sign in to comment.