Skip to content

Commit 5ef5ac4

Browse files
committed
Fix cargo clippy lint warnings
1 parent 6c37e56 commit 5ef5ac4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

minikv-core/src/rebuild.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//!
77
//! The rebuild process is fully deterministic with respect to:
88
//! - key decoding
9-
//! - volume selection (`key2volume`)
9+
//! - volume selection (`key_to_volume`)
1010
//! - replica ordering
1111
//!
1212
//! It does not recover hash or content-type metadata, as that information
@@ -21,7 +21,7 @@
2121
//! 3. For each file entry:
2222
//! - Base64-decode the filename to obtain the raw key.
2323
//! - Merge the current volume into the key's record.
24-
//! - Reorder volumes according to `key2volume`, preserving unknown
24+
//! - Reorder volumes according to `key_to_volume`, preserving unknown
2525
//! volumes at the end.
2626
//! 4. Write the reconstructed record with:
2727
//! - `deleted = No`
@@ -99,7 +99,7 @@ fn is_subvolume_dir(entry: &AutoindexEntry) -> bool {
9999
///
100100
/// - Decodes the filename into raw key bytes.
101101
/// - Acquires a per-key lock to prevent concurrent modification.
102-
/// - Computes the ideal replica ordering via `key2volume`.
102+
/// - Computes the ideal replica ordering via `key_to_volume`.
103103
/// - Merges the current volume into the existing record.
104104
/// - Reorders volumes deterministically.
105105
/// - Writes a reconstructed `Record`.
@@ -255,7 +255,7 @@ pub async fn rebuild_all(state: Arc<AppState>) {
255255
};
256256

257257
// Check if volume uses subvolume directories.
258-
let has_subvolumes = top_listing.iter().any(|e| is_subvolume_dir(e));
258+
let has_subvolumes = top_listing.iter().any(is_subvolume_dir);
259259

260260
if has_subvolumes {
261261
for sv in top_listing.iter().filter(|e| is_subvolume_dir(e)) {

0 commit comments

Comments
 (0)