rust/http2: fix clippy lint for is_empty()

This snuck through as "cargo clippy" check wasn't finding lints that
were fixed by the previous test for fixable lints.
pull/8237/head
Jason Ish 4 years ago committed by Victor Julien
parent 01badea65c
commit 35f99d1af7

@ -958,7 +958,7 @@ impl HTTP2State {
tx_same.ft_ts.tx_id = tx_same.tx_id - 1; tx_same.ft_ts.tx_id = tx_same.tx_id - 1;
}; };
let mut dinput = &rem[..hlsafe]; let mut dinput = &rem[..hlsafe];
if padded && rem.len() > 0 && usize::from(rem[0]) < hlsafe{ if padded && !rem.is_empty() && usize::from(rem[0]) < hlsafe{
dinput = &rem[1..hlsafe - usize::from(rem[0])]; dinput = &rem[1..hlsafe - usize::from(rem[0])];
} }
match tx_same.decompress( match tx_same.decompress(

Loading…
Cancel
Save