Skip to content

Commit

Permalink
clippy fixes and comment clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidoon1 committed Mar 21, 2024
1 parent 5af8f56 commit 78a8a2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 4 additions & 7 deletions src/db_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,13 @@ pub(crate) struct OptionsMustOutliveDB {
impl OptionsMustOutliveDB {
pub(crate) fn clone(&self) -> Self {
Self {
env: self.env.as_ref().map(Env::clone),
row_cache: self.row_cache.as_ref().map(Cache::clone),
env: self.env.clone(),
row_cache: self.row_cache.clone(),
block_based: self
.block_based
.as_ref()
.map(BlockBasedOptionsMustOutliveDB::clone),
write_buffer_manager: self
.write_buffer_manager
.as_ref()
.map(WriteBufferManager::clone),
write_buffer_manager: self.write_buffer_manager.clone(),
}
}
}
Expand All @@ -239,7 +236,7 @@ struct BlockBasedOptionsMustOutliveDB {
impl BlockBasedOptionsMustOutliveDB {
fn clone(&self) -> Self {
Self {
block_cache: self.block_cache.as_ref().map(Cache::clone),
block_cache: self.block_cache.clone(),
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/statistics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,6 @@ iterable_named_enum! {

/// The counters for error handler, not that, bg_io_error is the subset of
/// bg_error and bg_retryable_io_error is the subset of bg_io_error.
/// The misspelled versions are deprecated and only kept for compatibility.
/// ToDO: remove the misspelled tickers in the next major release.
ErrorHandlerBgErrorCount("rocksdb.error.handler.bg.error.count"),
ErrorHandlerBgIoErrorCount("rocksdb.error.handler.bg.io.error.count"),
ErrorHandlerBgRetryableIoErrorCount("rocksdb.error.handler.bg.retryable.io.error.count"),
Expand Down

0 comments on commit 78a8a2e

Please sign in to comment.