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:
parent
002ae3c5de
commit
2d491f4cc8
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user