ongoing change

This commit is contained in:
Nikolay Volf 2016-04-17 10:40:35 +03:00
parent 119ae94816
commit 2812dee8d4

View File

@ -314,7 +314,6 @@ impl FromRawBytesVariable for String {
impl<T> FromRawBytesVariable for Vec<T> where T: FromRawBytes { impl<T> FromRawBytesVariable for Vec<T> where T: FromRawBytes {
fn from_bytes_var(d: &[u8], len: u64) -> Result<Self, FromBytesError> { fn from_bytes_var(d: &[u8], len: u64) -> Result<Self, FromBytesError> {
let size_of_t = ::std::mem::size_of::<T>(); let size_of_t = ::std::mem::size_of::<T>();
assert_eq!(len, 8);
let length_in_chunks = len as usize / size_of_t; let length_in_chunks = len as usize / size_of_t;
let mut result = Vec::with_capacity(length_in_chunks as usize); let mut result = Vec::with_capacity(length_in_chunks as usize);