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(
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 ( ) ;
Original file line number Diff line number Diff line change 11pub 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) ?;
You can’t perform that action at this time.
0 commit comments