Skip to content

Commit 12c63c7

Browse files
Commit is Copy
1 parent 93c9b9a commit 12c63c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

collector/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl fmt::Display for Sha {
225225
}
226226
}
227227

228-
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
228+
#[derive(Debug, Copy, Clone, serde::Deserialize, serde::Serialize)]
229229
pub struct Commit {
230230
pub sha: Sha,
231231
pub date: Date,

site/src/load.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,9 @@ impl InputData {
332332

333333
let mut data_commits = Vec::with_capacity(data.len());
334334
let mut commit_map = HashMap::with_capacity(data.len());
335-
for (idx, commit) in data.iter().map(|cd| &cd.commit).enumerate() {
336-
data_commits.push(commit.clone());
337-
commit_map.insert(commit.clone(), idx);
335+
for (idx, commit) in data.iter().map(|cd| cd.commit).enumerate() {
336+
data_commits.push(commit);
337+
commit_map.insert(commit, idx);
338338
}
339339

340340
eprintln!("Starting interpolation...");

0 commit comments

Comments
 (0)