We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c947d63 commit 5ec0b15Copy full SHA for 5ec0b15
samply-symbols/src/shared.rs
@@ -1,5 +1,3 @@
1
-#[cfg(feature = "partial_read_stats")]
2
-use std::cell::RefCell;
3
use std::fmt::{Debug, Display};
4
use std::future::Future;
5
use std::marker::PhantomData;
@@ -624,7 +622,7 @@ impl FileReadStats {
624
622
}
625
623
self.read_call_count += 1;
626
627
- chunkbits.set_all(true);
+ chunkbits.fill(true);
628
629
630
pub fn unique_bytes_read(&self) -> u64 {
@@ -744,7 +742,7 @@ impl<T: FileContents> FileContentsWrapper<T> {
744
742
#[cfg(feature = "partial_read_stats")]
745
743
impl<T: FileContents> Drop for FileContentsWrapper<T> {
746
fn drop(&mut self) {
747
- eprintln!("{}", self.partial_read_stats.lock());
+ eprintln!("{}", *self.partial_read_stats.lock().unwrap());
748
749
750
0 commit comments