From 64b54e81fb45c248de85232d90ac5a393d49e1b3 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 2 Nov 2021 20:06:50 +0600 Subject: [PATCH] fix wranings --- ntex-bytes/src/string.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntex-bytes/src/string.rs b/ntex-bytes/src/string.rs index 23a784f0..7bf515d1 100644 --- a/ntex-bytes/src/string.rs +++ b/ntex-bytes/src/string.rs @@ -93,7 +93,7 @@ impl ByteString { /// Panics if `at > len`. pub fn split_off(&mut self, at: usize) -> ByteString { // check str - self.split_at(at); + let _ = self.split_at(at); ByteString(self.0.split_off(at)) } @@ -123,7 +123,7 @@ impl ByteString { /// Panics if `at > len`. pub fn split_to(&mut self, at: usize) -> ByteString { // check str - self.split_at(at); + let _ = self.split_at(at); ByteString(self.0.split_to(at)) }