Rust 1.78 (#11314)
Notable things I've had to fix due to 1.78: - Better detection of unused items - New clippy lint (`assigning_clones`) that points out places where assignment operations with clone rhs could be replaced with more performant `clone_into` Release Notes: - N/A
This commit is contained in:
parent
9ec0927701
commit
1a9b0536a2
41 changed files with 49 additions and 433 deletions
|
@ -255,15 +255,21 @@ fn parse_git_blame(output: &str) -> Result<Vec<BlameEntry>> {
|
|||
.get(&new_entry.sha)
|
||||
.and_then(|slot| entries.get(*slot))
|
||||
{
|
||||
new_entry.author = existing_entry.author.clone();
|
||||
new_entry.author_mail = existing_entry.author_mail.clone();
|
||||
new_entry.author.clone_from(&existing_entry.author);
|
||||
new_entry
|
||||
.author_mail
|
||||
.clone_from(&existing_entry.author_mail);
|
||||
new_entry.author_time = existing_entry.author_time;
|
||||
new_entry.author_tz = existing_entry.author_tz.clone();
|
||||
new_entry.committer = existing_entry.committer.clone();
|
||||
new_entry.committer_mail = existing_entry.committer_mail.clone();
|
||||
new_entry.author_tz.clone_from(&existing_entry.author_tz);
|
||||
new_entry.committer.clone_from(&existing_entry.committer);
|
||||
new_entry
|
||||
.committer_mail
|
||||
.clone_from(&existing_entry.committer_mail);
|
||||
new_entry.committer_time = existing_entry.committer_time;
|
||||
new_entry.committer_tz = existing_entry.committer_tz.clone();
|
||||
new_entry.summary = existing_entry.summary.clone();
|
||||
new_entry
|
||||
.committer_tz
|
||||
.clone_from(&existing_entry.committer_tz);
|
||||
new_entry.summary.clone_from(&existing_entry.summary);
|
||||
}
|
||||
|
||||
current_entry.replace(new_entry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue