mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
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:
parent
5c6512f255
commit
e094e4dabd
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user