Skip to content

Commit

Permalink
Clippy: remove unnecessary map_err (#1353)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez authored Sep 29, 2023
1 parent f289a22 commit ccd2470
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/src/types/block/output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ impl Packable for Output {
AliasOutput::KIND => Self::from(AliasOutput::unpack::<_, VERIFY>(unpacker, visitor).coerce()?),
FoundryOutput::KIND => Self::from(FoundryOutput::unpack::<_, VERIFY>(unpacker, visitor).coerce()?),
NftOutput::KIND => Self::from(NftOutput::unpack::<_, VERIFY>(unpacker, visitor).coerce()?),
k => return Err(Error::InvalidOutputKind(k)).map_err(UnpackError::Packable),
k => return Err(UnpackError::Packable(Error::InvalidOutputKind(k))),
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/types/block/output/unlock_condition/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ impl Packable for UnlockCondition {
ImmutableAliasAddressUnlockCondition::KIND => {
Self::from(ImmutableAliasAddressUnlockCondition::unpack::<_, VERIFY>(unpacker, &()).coerce()?)
}
k => return Err(Error::InvalidOutputKind(k)).map_err(UnpackError::Packable),
k => return Err(UnpackError::Packable(Error::InvalidOutputKind(k))),
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/types/block/payload/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl Packable for Payload {
Self::from(TreasuryTransactionPayload::unpack::<_, VERIFY>(unpacker, visitor).coerce()?)
}
TaggedDataPayload::KIND => Self::from(TaggedDataPayload::unpack::<_, VERIFY>(unpacker, &()).coerce()?),
k => return Err(Error::InvalidPayloadKind(k)).map_err(UnpackError::Packable),
k => return Err(UnpackError::Packable(Error::InvalidPayloadKind(k))),
})
}
}
Expand Down

0 comments on commit ccd2470

Please sign in to comment.