Bijan Nazem
Bijan Nazem
me as well. > * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) * frame #0: 0x0000000000000000 frame #1: 0x00000001005a58b0 libprotobuf.29.3.0.dylib`google::protobuf::internal::TcParser::FastMtS1(google::protobuf::MessageLite*, char const*, google::protobuf::internal::ParseContext*, google::protobuf::internal::TcFieldData, google::protobuf::internal::TcParseTableBase const*,...
I think BufRead requires something like: fn read_line(&mut self, buf: &mut String, max_length: usize) -> Result in addition to: fn read_line(&mut self, buf: &mut String) -> Result https://doc.rust-lang.org/stable/std/io/trait.BufRead.html#method.read_line
This could be a possible solution: use bytes::BytesMut; use futures::{Async, Poll, Stream}; use std::io::{self, BufRead}; use AsyncRead; /// Combinator created by the top-level `lines` method which is a stream over...
it crashes without that c_str() too.
That was correct, resizing the vector was the root of the issue. I changed the constructor to `MapBenchmark() : rand_{}, keys_{INIT_SIZE}, map_{INIT_SIZE} {` and that resolved the issue. Still, it...