mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-01 20:07:39 +03:00
fix wranings
This commit is contained in:
parent
18a2fde154
commit
64b54e81fb
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue