Skip to content

Commit 1fe6fe7

Browse files
committed
fix(batch): silence unused variable clippy warnings
1 parent 9700582 commit 1fe6fe7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cortex-batch/src/batch_ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async fn atomic_write(path: &Path, content: &[u8]) -> std::io::Result<()> {
6565

6666
match fs::rename(&temp_path, path).await {
6767
Ok(()) => break,
68-
Err(e) if retries > 0 => {
68+
Err(_) if retries > 0 => {
6969
retries -= 1;
7070
tokio::time::sleep(tokio::time::Duration::from_millis(50)).await;
7171
continue;

src/cortex-batch/src/multi_edit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async fn atomic_write(path: &Path, content: &[u8]) -> std::io::Result<()> {
6565

6666
match fs::rename(&temp_path, path).await {
6767
Ok(()) => break,
68-
Err(e) if retries > 0 => {
68+
Err(_) if retries > 0 => {
6969
retries -= 1;
7070
tokio::time::sleep(tokio::time::Duration::from_millis(50)).await;
7171
continue;

0 commit comments

Comments
 (0)