mononoke: make some derived data mapping types comparable

Summary:
It makes it a bit hard to do experiments and compare derivation results.
It's easy to compare these types, so let's do it.

Reviewed By: mitrandir77

Differential Revision: D31017823

fbshipit-source-id: 6173bba53c7ee254198e023dde57564fe9c3efed
This commit is contained in:
Stanislau Hlebik 2021-09-17 07:58:30 -07:00 committed by Facebook GitHub Bot
parent 66279b94a6
commit ee516928a1
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ use unodes::RootUnodeManifestId;
use crate::derive_v1::derive_blame_v1;
use crate::{BlameDeriveOptions, DEFAULT_BLAME_FILESIZE_LIMIT};
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct BlameRoot(ChangesetId);
impl From<ChangesetId> for BlameRoot {

View File

@ -26,7 +26,7 @@ use crate::batch_v2::derive_blame_v2_in_batch;
use crate::derive_v2::derive_blame_v2;
use crate::{BlameDeriveOptions, DEFAULT_BLAME_FILESIZE_LIMIT};
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct RootBlameV2 {
csid: ChangesetId,
root_manifest: RootUnodeManifestId,

View File

@ -44,7 +44,7 @@ pub enum ErrorKind {
DeserializationError(String, String),
}
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct RootFastlog(ChangesetId);
impl From<ChangesetId> for RootFastlog {