Skip to content

Commit

Permalink
address linter
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteHerrmann committed Jul 27, 2024
1 parent 208973d commit 74ca9e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn extract_pr_info(config: &Config, pr: &PullRequest) -> Result<PRInfo, GitH
.iter()
.find(|&(_, abbrev)| abbrev.eq(ct.into()))
{
change_type = name.to_owned();
change_type.clone_from(name);
}
};

Expand Down
6 changes: 3 additions & 3 deletions src/inputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ pub fn get_description(default_value: &str) -> Result<String, InputError> {
}

pub fn get_pr_description() -> Result<String, InputError> {
Ok(
Editor::new("Please provide the Pull Request body with a description of the made changes.\n")
.prompt()?,
Ok(Editor::new(
"Please provide the Pull Request body with a description of the made changes.\n",
)
.prompt()?)
}

pub fn get_target_branch(branches_page: Page<Branch>) -> Result<String, InputError> {
Expand Down

0 comments on commit 74ca9e8

Please sign in to comment.