1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 14:49:20 +02:00

fix warnings

This commit is contained in:
Nikolay Kim
2019-12-13 11:46:02 +06:00
parent c1deaaeb2f
commit 3d64d565d9
3 changed files with 3 additions and 3 deletions

View File

@ -477,7 +477,7 @@ macro_rules! byte (
($rdr:ident) => ({
if $rdr.len() > 0 {
let b = $rdr[0];
$rdr.split_to(1);
let _ = $rdr.split_to(1);
b
} else {
return Poll::Pending

View File

@ -108,7 +108,7 @@ impl Parser {
}
// remove prefix
src.split_to(idx);
let _ = src.split_to(idx);
// no need for body
if length == 0 {