Skip to content

Commit 2610f44

Browse files
committed
fmt
1 parent 9d269a2 commit 2610f44

File tree

1 file changed

+2
-2
lines changed
  • src/query/service/tests/it/storages/fuse/operations/mutation

1 file changed

+2
-2
lines changed

src/query/service/tests/it/storages/fuse/operations/mutation/deletion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async fn test_delete_by_block_name() -> Result<()> {
7979
.await?
8080
.try_collect::<Vec<_>>()
8181
.await?;
82-
let block_name = match blocks.get(0).and_then(|b| b.get_by_offset(0).index(0)) {
82+
let block_name = match blocks.first().and_then(|b| b.get_by_offset(0).index(0)) {
8383
Some(ScalarRef::String(s)) => s.to_string(),
8484
Some(other) => {
8585
return Err(ErrorCode::Internal(format!(
@@ -105,7 +105,7 @@ async fn test_delete_by_block_name() -> Result<()> {
105105
.try_collect::<Vec<_>>()
106106
.await?;
107107
let count = match count_blocks
108-
.get(0)
108+
.first()
109109
.and_then(|b| b.get_by_offset(0).index(0))
110110
{
111111
Some(ScalarRef::Number(NumberScalar::UInt64(v))) => v,

0 commit comments

Comments
 (0)