Skip to content

Commit 5cd6b50

Browse files
committed
Fix copy/pasta mistake in Comparison::next
1 parent 5ac9252 commit 5cd6b50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/comparison.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ pub struct Comparison {
414414
impl Comparison {
415415
/// Gets the previous commit before `a`
416416
pub fn prev(&self, master_commits: &[collector::MasterCommit]) -> Option<String> {
417-
prev_commit(&self.a.artifact, master_commits).map(|c| c.parent_sha.clone())
417+
prev_commit(&self.a.artifact, master_commits).map(|c| c.sha.clone())
418418
}
419419

420420
/// Determines if `a` and `b` are contiguous
@@ -437,7 +437,7 @@ impl Comparison {
437437

438438
/// Gets the sha of the next commit after `b`
439439
pub fn next(&self, master_commits: &[collector::MasterCommit]) -> Option<String> {
440-
next_commit(&self.a.artifact, master_commits).map(|c| c.parent_sha.clone())
440+
next_commit(&self.b.artifact, master_commits).map(|c| c.sha.clone())
441441
}
442442

443443
fn get_benchmarks<'a>(&'a self) -> Vec<BenchmarkComparison<'a>> {

0 commit comments

Comments
 (0)