revisionstore: collect::<Bytes> -> collect::<Vec>().into()

Summary: Going to migrate from bytes to minibytes. Avoid using bytes' specific API.

Reviewed By: kulshrax

Differential Revision: D26218826

fbshipit-source-id: ba41697eab8fc5fb7bf73bc565c05a7c1b29464c
This commit is contained in:
Jun Wu 2021-02-03 20:19:27 -08:00 committed by Facebook GitHub Bot
parent 5c6512f255
commit e094e4dabd

View File

@ -1341,9 +1341,10 @@ mod tests {
let k = key("a", "abcd");
let data = (0..10 * 1024 * 1024)
let data: Bytes = (0..10 * 1024 * 1024)
.map(|_| rand::random::<u8>())
.collect::<Bytes>();
.collect::<Vec<u8>>()
.into();
assert_eq!(data.len(), 10 * 1024 * 1024);
let mut map = HashMap::new();