chore: Fix linter warnings (#194)

This commit is contained in:
Santiago Carmuega 2022-09-21 18:44:03 -03:00 committed by GitHub
parent dc41f7b212
commit d74c49c0c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,22 +242,12 @@ impl<'b> MultiEraTx<'b> {
/// the txouts (Babbage spec, ch 4).
pub fn produces(&self) -> Vec<(usize, MultiEraOutput)> {
match self.is_valid() {
true => {
self
.outputs()
.into_iter()
.enumerate()
.collect()
}
false => {
self
true => self.outputs().into_iter().enumerate().collect(),
false => self
.collateral_return()
.into_iter()
.map(|txo| {
(self.outputs().len(), txo)
})
.collect()
}
.map(|txo| (self.outputs().len(), txo))
.collect(),
}
}