Skip to content

Commit 9635189

Browse files
committed
clippy fix
1 parent 153f1f0 commit 9635189

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

worker-sandbox/src/shared_counter.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ impl SharedDurableObject for SharedCounter {
4646
TimeoutFuture::new(1_000).await;
4747

4848
*self.count.borrow_mut() += 15;
49-
self.state
50-
.storage()
51-
.put("count", *self.count.borrow())
52-
.await?;
49+
let count = *self.count.borrow();
50+
self.state.storage().put("count", count).await?;
5351

5452
Response::ok(format!(
5553
"[durable_object]: self.count: {}, secret value: {}",

0 commit comments

Comments
 (0)