1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-29 05:53:38 +03:00

refactor(clippy): apply assigning_clones lint (#876)

This commit is contained in:
Nejc Galof 2024-09-23 20:32:20 +02:00 committed by GitHub
parent 002ae3c5de
commit 2d491f4cc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -349,7 +349,7 @@ impl Commit<'_> {
};
self.group = parser.group.clone().map(regex_replace);
self.scope = parser.scope.clone().map(regex_replace);
self.default_scope = parser.default_scope.clone();
self.default_scope.clone_from(&parser.default_scope);
return Ok(self);
}
}

View File

@ -268,7 +268,7 @@ fn process_repository<'a>(
release.repository = Some(repository.path.to_string_lossy().into_owned());
if let Some(tag) = tags.get(&commit_id) {
release.version = Some(tag.name.to_string());
release.message = tag.message.clone();
release.message.clone_from(&tag.message);
release.commit_id = Some(commit_id);
release.timestamp = if args.tag.as_deref() == Some(tag.name.as_str()) {
match tag_timestamp {