mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-05 13:57:39 +03:00
Implement std::error::Error and fix minor issues (#99)
* fix clippy issues * implement std error for ntex errors and bound WebResponseError * fix minor issues
This commit is contained in:
parent
7680c5482e
commit
2439797fcf
19 changed files with 41 additions and 25 deletions
|
@ -1888,8 +1888,8 @@ impl Inner {
|
|||
fn from_slice(cap: usize, src: &[u8], pool: PoolRef) -> Inner {
|
||||
// Store data in vec
|
||||
let mut vec = Vec::with_capacity(cap + SHARED_VEC_SIZE);
|
||||
#[allow(clippy::uninit_vec)]
|
||||
unsafe {
|
||||
#![allow(clippy::uninit_vec)]
|
||||
vec.set_len(SHARED_VEC_SIZE);
|
||||
vec.extend_from_slice(src);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue