From 51862f0d02179bf1eb7eb72db3d03a1a731a2d60 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Tue, 8 Jan 2019 15:27:17 +0300 Subject: [PATCH] tabify --- storage/src/nullifier.rs | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/storage/src/nullifier.rs b/storage/src/nullifier.rs index 7dc0123b..fda25e66 100644 --- a/storage/src/nullifier.rs +++ b/storage/src/nullifier.rs @@ -4,40 +4,40 @@ use EpochTag; /// Nullifier. #[derive(Debug, Clone, Copy, PartialEq)] pub struct Nullifier { - tag: EpochTag, - hash: H256, + tag: EpochTag, + hash: H256, } /// Trait to query existing nullifier. pub trait NullifierTracker : Sync { - fn contains_nullifier(&self, nullifier: Nullifier) -> bool; + fn contains_nullifier(&self, nullifier: Nullifier) -> bool; } impl Nullifier { - /// New nullifer. - pub fn new(tag: EpochTag, hash: H256) -> Self { - Nullifier { - tag: tag, - hash: hash, - } - } + /// New nullifer. + pub fn new(tag: EpochTag, hash: H256) -> Self { + Nullifier { + tag: tag, + hash: hash, + } + } - /// Nullifer tag - pub fn tag(&self) -> EpochTag { - self.tag - } + /// Nullifer tag + pub fn tag(&self) -> EpochTag { + self.tag + } - /// Nullifer hash - pub fn hash(&self) -> &H256 { - &self.hash - } + /// Nullifer hash + pub fn hash(&self) -> &H256 { + &self.hash + } } impl From<(EpochTag, H256)> for Nullifier { - fn from(tuple: (EpochTag, H256)) -> Self { - Nullifier { - tag: tuple.0, - hash: tuple.1, - } - } + fn from(tuple: (EpochTag, H256)) -> Self { + Nullifier { + tag: tuple.0, + hash: tuple.1, + } + } } \ No newline at end of file