Skip to content

Commit 424e61c

Browse files
committed
Fix last clippy warning
1 parent 8683dd1 commit 424e61c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hypersync-client/src/stream.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub async fn stream_arrow(
169169
let x = x as u32;
170170

171171
let batch_size = cmp::max((x as f64 * ratio) as u64, min_batch_size);
172-
let step = batch_size | u64::from(next_generation) << 32;
172+
let step = batch_size | (u64::from(next_generation) << 32);
173173
Some(step)
174174
})
175175
.ok();
@@ -180,7 +180,7 @@ pub async fn stream_arrow(
180180
let x = x as u32;
181181

182182
let batch_size = cmp::min((x as f64 * ratio) as u64, max_batch_size);
183-
let step = batch_size | u64::from(next_generation) << 32;
183+
let step = batch_size | (u64::from(next_generation) << 32);
184184
Some(step)
185185
})
186186
.ok();

hypersync-format/src/types/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pub fn decode_hex(hex: &str) -> Result<Vec<u8>, faster_hex::Error> {
2-
let len = hex.as_bytes().len();
2+
let len = hex.len();
33
let mut dst = vec![0; len / 2];
44

55
faster_hex::hex_decode(hex.as_bytes(), &mut dst)?;

0 commit comments

Comments
 (0)