Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch is for fixing the following errors: --> src/lib.rs:359:9 | 358 | let mut server_version_data = Vec::new(); | ---------- help: consider replacing this with: `vec![0; server_version.header.message_size as usize - size_of::<Version>()]` 359 | / server_version_data.resize( 360 | | server_version.header.message_size as usize - size_of::<Version>(), 361 | | 0, 362 | | ); | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization = note: `-D clippy::slow-vector-initialization` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::slow_vector_initialization)]` Signed-off-by: Bo Chen <chen.bo@intel.com>
- Loading branch information