File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
hypersync-format/src/types Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ pub async fn stream_arrow(
169
169
let x = x as u32 ;
170
170
171
171
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 ) ;
173
173
Some ( step)
174
174
} )
175
175
. ok ( ) ;
@@ -180,7 +180,7 @@ pub async fn stream_arrow(
180
180
let x = x as u32 ;
181
181
182
182
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 ) ;
184
184
Some ( step)
185
185
} )
186
186
. ok ( ) ;
Original file line number Diff line number Diff line change 1
1
pub fn decode_hex ( hex : & str ) -> Result < Vec < u8 > , faster_hex:: Error > {
2
- let len = hex. as_bytes ( ) . len ( ) ;
2
+ let len = hex. len ( ) ;
3
3
let mut dst = vec ! [ 0 ; len / 2 ] ;
4
4
5
5
faster_hex:: hex_decode ( hex. as_bytes ( ) , & mut dst) ?;
You can’t perform that action at this time.
0 commit comments