From e12329054a6707d05bed342a249e1c75a932d52f Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 12 Dec 2019 13:27:46 -0800 Subject: [PATCH] refactor(http1): fix for unused must_use on read_buf.split_to --- src/proto/h1/io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto/h1/io.rs b/src/proto/h1/io.rs index b58c2feacc..50ce2383c4 100644 --- a/src/proto/h1/io.rs +++ b/src/proto/h1/io.rs @@ -136,7 +136,7 @@ where _ => break, } } - self.read_buf.split_to(i); + self.read_buf.advance(i); } }