diff options
Diffstat (limited to 'openpgp/src/packet_pile.rs')
-rw-r--r-- | openpgp/src/packet_pile.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/packet_pile.rs b/openpgp/src/packet_pile.rs index 8aef9e82..17d53143 100644 --- a/openpgp/src/packet_pile.rs +++ b/openpgp/src/packet_pile.rs @@ -283,7 +283,7 @@ impl PacketPile { return None; } - return packet; + packet } /// Returns a mutable reference to the packet at the location @@ -433,7 +433,7 @@ impl PacketPile { .expect("The above packets are structured containers"); } - return Err(Error::IndexOutOfRange.into()); + Err(Error::IndexOutOfRange.into()) } /// Returns an iterator over all of the packet's descendants, in @@ -628,7 +628,7 @@ impl<'a> TryFrom<PacketParserResult<'a>> for PacketPile { } } - return Ok(PacketPile { top_level }); + Ok(PacketPile { top_level }) } } |