Skip to content

Commit 2b3b41f

Browse files
committed
tweak file open
1 parent eb0ab68 commit 2b3b41f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rust/kafka-deduplicator/src/checkpoint/planner.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use std::collections::HashMap;
2-
use std::fs::File;
32
use std::path::{Path, PathBuf};
43

54
use super::{CheckpointFile, CheckpointInfo, CheckpointMetadata};
@@ -216,7 +215,7 @@ fn build_candidate_file(file_path: &Path) -> Result<LocalCheckpointFile> {
216215
}
217216

218217
fn load_and_hash_file(file_path: &Path) -> Result<String> {
219-
let mut file = File::open(file_path)
218+
let mut file = std::fs::File::open(file_path)
220219
.with_context(|| format!("Failed to open file for hashing: {file_path:?}"))?;
221220

222221
let mut hasher = Sha256::new();

0 commit comments

Comments
 (0)