Skip to content

Commit 8857749

Browse files
committed
clippy suggestion
1 parent d689689 commit 8857749

File tree

1 file changed

+1
-2
lines changed
  • examples/surrealdb/cli-multi-counter/src

1 file changed

+1
-2
lines changed

examples/surrealdb/cli-multi-counter/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ async fn main() -> surrealdb::Result<()> {
4242
.bind(("name", name))
4343
.await?;
4444
let entries: Vec<Entry> = entries.take(0)?;
45-
for entry in entries {
45+
if let Some(entry) = entries.into_iter().next() {
4646
count = entry.count;
47-
break;
4847
}
4948

5049
count += 1;

0 commit comments

Comments
 (0)