Skip to content

Commit d33aa73

Browse files
committed
chore(cubestore): Remove dependency on feature(cursor_remaining) in cubehll
This got removed in more recent versions of Rust.
1 parent eca7e4d commit d33aa73

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

rust/cubestore/cubehll/src/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl HllInstance {
201201
let mut values = Vec::with_capacity(num_hashes);
202202
let mut data = Cursor::new(data);
203203
let maxval = (1 << reg_width) as u32 - 1;
204-
while !data.is_empty() {
204+
while data.position() < data.get_ref().len() as u64 {
205205
let hash = data.read_u64::<BigEndian>().unwrap();
206206
let ind = hash & mask;
207207
let val = hash >> log_num_buckets;

rust/cubestore/cubehll/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(cursor_remaining)]
21
/*
32
* Licensed under the Apache License, Version 2.0 (the "License");
43
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)