Skip to content

Commit

Permalink
Autoconceal nits
Browse files Browse the repository at this point in the history
  • Loading branch information
rajarshimaitra committed Nov 22, 2020
1 parent 4241962 commit aa351af
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/rgb/contract/conceal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ where
T: AutoConceal,
{
fn conceal_except(&mut self, seals: &Vec<seal::Confidential>) -> usize {
let count = self
.iter_mut()
.fold(0usize, |sum, item| sum + item.conceal_except(seals));
count
self.iter_mut()
.fold(0usize, |sum, item| sum + item.conceal_except(seals))
}
}

Expand All @@ -57,10 +55,8 @@ where
V: AutoConceal,
{
fn conceal_except(&mut self, seals: &Vec<seal::Confidential>) -> usize {
let count = self
.iter_mut()
.fold(0usize, |sum, item| sum + item.1.conceal_except(seals));
count
self.iter_mut()
.fold(0usize, |sum, item| sum + item.1.conceal_except(seals))
}
}

Expand All @@ -86,9 +82,7 @@ where
V: AutoConceal,
{
fn conceal_except(&mut self, seals: &Vec<seal::Confidential>) -> usize {
let count = self
.iter_mut()
.fold(0usize, |sum, item| sum + item.1.conceal_except(seals));
count
self.iter_mut()
.fold(0usize, |sum, item| sum + item.1.conceal_except(seals))
}
}

0 comments on commit aa351af

Please sign in to comment.