Skip to content

Commit 37f8f07

Browse files
committed
Reformat.
1 parent 0dc8d9f commit 37f8f07

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

linera-views/src/backends/lru_caching.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
66
use std::sync::{Arc, Mutex};
77

8+
use futures::stream::StreamExt;
89
use serde::{Deserialize, Serialize};
910

1011
#[cfg(with_testing)]
1112
use crate::memory::MemoryDatabase;
1213
#[cfg(with_testing)]
1314
use crate::store::TestKeyValueDatabase;
14-
use futures::stream::StreamExt;
15-
1615
use crate::{
1716
batch::{Batch, WriteOperation},
1817
lru_prefix_cache::{LruPrefixCache, StorageCacheConfig},

linera-views/src/backends/rocks_db.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -573,10 +573,7 @@ impl ReadableKeyValueStore for RocksDbStoreInternal {
573573
.await
574574
}
575575

576-
fn find_keys_by_prefix_iter(
577-
&self,
578-
key_prefix: &[u8],
579-
) -> FindKeysStream<'_, Self::Error> {
576+
fn find_keys_by_prefix_iter(&self, key_prefix: &[u8]) -> FindKeysStream<'_, Self::Error> {
580577
self.find_keys_stream(key_prefix, IterDirection::Forward)
581578
}
582579

@@ -587,10 +584,7 @@ impl ReadableKeyValueStore for RocksDbStoreInternal {
587584
self.find_key_values_stream(key_prefix, IterDirection::Forward)
588585
}
589586

590-
fn find_keys_by_prefix_rev_iter(
591-
&self,
592-
key_prefix: &[u8],
593-
) -> FindKeysStream<'_, Self::Error> {
587+
fn find_keys_by_prefix_rev_iter(&self, key_prefix: &[u8]) -> FindKeysStream<'_, Self::Error> {
594588
self.find_keys_stream(key_prefix, IterDirection::Reverse)
595589
}
596590

0 commit comments

Comments
 (0)