File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ unsafe fn FASTCOVER_buildDictionary(
424424}
425425unsafe fn FASTCOVER_tryParameters ( opaque : * mut core:: ffi:: c_void ) {
426426 let data = opaque as * mut FASTCOVER_tryParameters_data_t ;
427- let ctx = ( * data) . ctx . cast_mut ( ) . as_mut ( ) . unwrap ( ) ;
427+ let ctx = ( * data) . ctx . as_ref ( ) . unwrap ( ) ;
428428 let parameters = ( * data) . parameters ;
429429 let dictBufferCapacity = ( * data) . dictBufferCapacity ;
430430 let totalCompressedSize = Error :: GENERIC . to_error_code ( ) ;
@@ -805,7 +805,7 @@ pub unsafe extern "C" fn ZDICT_optimizeTrainFromBuffer_fastCover(
805805 POOL_free ( pool) ;
806806 return Error :: memory_allocation. to_error_code ( ) ;
807807 }
808- ( * data) . ctx = & mut ctx;
808+ ( * data) . ctx = & ctx;
809809 ( * data) . best = & mut best;
810810 ( * data) . dictBufferCapacity = dictBufferCapacity;
811811 ( * data) . parameters = coverParams;
You can’t perform that action at this time.
0 commit comments