From 3d64d565d9aa7636f9faa56ff6bde59e73ce773a Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Fri, 13 Dec 2019 11:46:02 +0600 Subject: [PATCH] fix warnings --- actix-http/Cargo.toml | 2 +- actix-http/src/h1/decoder.rs | 2 +- actix-http/src/ws/frame.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actix-http/Cargo.toml b/actix-http/Cargo.toml index c0e7419c2..abe9dc961 100644 --- a/actix-http/Cargo.toml +++ b/actix-http/Cargo.toml @@ -50,7 +50,7 @@ actix-tls = { version = "1.0.0", optional = true } base64 = "0.11" bitflags = "1.2" -bytes = "0.5.2" +bytes = "0.5.3" copyless = "0.1.4" chrono = "0.4.6" derive_more = "0.99.2" diff --git a/actix-http/src/h1/decoder.rs b/actix-http/src/h1/decoder.rs index 87e2a1ec8..6a40f41a7 100644 --- a/actix-http/src/h1/decoder.rs +++ b/actix-http/src/h1/decoder.rs @@ -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 diff --git a/actix-http/src/ws/frame.rs b/actix-http/src/ws/frame.rs index a280ff9c7..3983534ee 100644 --- a/actix-http/src/ws/frame.rs +++ b/actix-http/src/ws/frame.rs @@ -108,7 +108,7 @@ impl Parser { } // remove prefix - src.split_to(idx); + let _ = src.split_to(idx); // no need for body if length == 0 {