Skip to content

Commit 5ec0b15

Browse files
committed
Fix --all-features build
I have rust-analyzer set up to use `--all-features` by default, and so do a lot of my Cargo command aliases. Fix the build for `--all-features`.
1 parent c947d63 commit 5ec0b15

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

samply-symbols/src/shared.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#[cfg(feature = "partial_read_stats")]
2-
use std::cell::RefCell;
31
use std::fmt::{Debug, Display};
42
use std::future::Future;
53
use 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")]
745743
impl<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

0 commit comments

Comments
 (0)