Skip to content

Commit

Permalink
Fix up false-error lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-zu committed Jan 12, 2024
1 parent 363d1f2 commit b10a31f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/shroom-pkt/src/proto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ macro_rules! packet_try_wrap {

impl<'de, $($gen_ty: $crate::DecodePacket<'de>),*> $crate::DecodePacket<'de> for $name<$($gen_ty,)*> {
fn decode(pr: &mut $crate::PacketReader<'de>) -> $crate::PacketResult<Self> {
// False positive in case try_into returns a NetError
// elsewise we want the implicit conversio
#[allow(clippy::needless_question_mark)]
Ok(<$try_from_ty>::decode(pr)?.try_into()?)
}
}
Expand Down

0 comments on commit b10a31f

Please sign in to comment.