Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed May 24, 2024
1 parent eaf91a6 commit 179746e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/compaction/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct Options {
/// Levels manifest.
pub levels: Arc<RwLock<LevelManifest>>,

/// sealed memtables (required for temporarily locking).
/// Sealed memtables (required for temporarily locking).
pub sealed_memtables: Arc<RwLock<SealedMemtables>>,

/// Snapshot counter (required for checking if there are open snapshots).
Expand Down
1 change: 1 addition & 0 deletions src/levels/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ impl Serializable for Vec<Level> {
}

#[cfg(test)]
#[allow(clippy::expect_used)]
mod tests {

use crate::{
Expand Down
1 change: 1 addition & 0 deletions src/segment/multi_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ impl<'a> DoubleEndedIterator for MultiReader<'a> {
}

#[cfg(test)]
#[allow(clippy::expect_used)]
mod tests {
use super::*;
use std::sync::Arc;
Expand Down
1 change: 1 addition & 0 deletions src/segment/prefix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ impl DoubleEndedIterator for PrefixedReader {
}

#[cfg(test)]
#[allow(clippy::expect_used)]
mod tests {
use crate::{
block_cache::BlockCache,
Expand Down
1 change: 1 addition & 0 deletions src/segment/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ impl DoubleEndedIterator for Range {
}

#[cfg(test)]
#[allow(clippy::expect_used)]
mod tests {
// use super::Reader as SegmentReader;
use crate::{
Expand Down
1 change: 1 addition & 0 deletions src/segment/value_block_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ impl DoubleEndedIterator for ValueBlockConsumer {
}

#[cfg(test)]
#[allow(clippy::expect_used)]
mod tests {
use super::*;
use crate::segment::block::header::Header;
Expand Down
1 change: 1 addition & 0 deletions src/segment/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ impl Writer {
}

#[cfg(test)]
#[allow(clippy::expect_used)]
mod tests {
use super::*;
use crate::descriptor_table::FileDescriptorTable;
Expand Down

0 comments on commit 179746e

Please sign in to comment.