File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1- #[ cfg( feature = "partial_read_stats" ) ]
2- use std:: cell:: RefCell ;
31use std:: fmt:: { Debug , Display } ;
42use std:: future:: Future ;
53use std:: marker:: PhantomData ;
@@ -624,7 +622,7 @@ impl FileReadStats {
624622 }
625623 self . read_call_count += 1 ;
626624 }
627- chunkbits. set_all ( true ) ;
625+ chunkbits. fill ( true ) ;
628626 }
629627
630628 pub fn unique_bytes_read ( & self ) -> u64 {
@@ -744,7 +742,7 @@ impl<T: FileContents> FileContentsWrapper<T> {
744742#[ cfg( feature = "partial_read_stats" ) ]
745743impl < T : FileContents > Drop for FileContentsWrapper < T > {
746744 fn drop ( & mut self ) {
747- eprintln ! ( "{}" , self . partial_read_stats. lock( ) ) ;
745+ eprintln ! ( "{}" , * self . partial_read_stats. lock( ) . unwrap ( ) ) ;
748746 }
749747}
750748
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ type FileContentsType = samply_symbols::FileContentsWithChunkedCaching<MmapFileC
120120
121121#[ cfg( feature = "chunked_caching" ) ]
122122fn mmap_to_file_contents ( mmap : memmap2:: Mmap ) -> FileContentsType {
123- samply_symbols:: FileContentsWithChunkedCaching :: new ( mmap. len ( ) as u64 , MmapFileContents ( mmap) )
123+ samply_symbols:: FileContentsWithChunkedCaching :: new ( mmap. len ( ) , MmapFileContents ( mmap) )
124124}
125125
126126#[ cfg( not( feature = "chunked_caching" ) ) ]
You can’t perform that action at this time.
0 commit comments