Skip to content

Commit d4745c3

Browse files
committed
all: Run 'cargo fmt'
1 parent 5a87f36 commit d4745c3

File tree

10 files changed

+1069
-1065
lines changed

10 files changed

+1069
-1065
lines changed

graph/src/amp/codec/test_fixtures.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ pub static RECORD_BATCH: LazyLock<RecordBatch> = LazyLock::new(|| {
3535

3636
let columns = record_batches
3737
.into_iter()
38-
.flat_map(|record_batch| record_batch.columns()).cloned()
38+
.flat_map(|record_batch| record_batch.columns())
39+
.cloned()
3940
.collect::<Vec<_>>();
4041

4142
RecordBatch::try_new(Schema::try_merge(schemas).unwrap().into(), columns).unwrap()

graph/src/blockchain/firehose_block_stream.rs

Lines changed: 53 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -465,40 +465,64 @@ mod tests {
465465

466466
// Nothing
467467

468-
assert!(
469-
!must_check_subgraph_continuity(&logger, &no_current_block, &no_cursor, 10),
470-
);
468+
assert!(!must_check_subgraph_continuity(
469+
&logger,
470+
&no_current_block,
471+
&no_cursor,
472+
10
473+
),);
471474

472475
// No cursor, subgraph current block ptr <, ==, > than manifest start block num
473476

474-
assert!(
475-
!must_check_subgraph_continuity(&logger, &some_current_block(9), &no_cursor, 10),
476-
);
477-
478-
assert!(
479-
must_check_subgraph_continuity(&logger, &some_current_block(10), &no_cursor, 10),
480-
);
481-
482-
assert!(
483-
must_check_subgraph_continuity(&logger, &some_current_block(11), &no_cursor, 10),
484-
);
477+
assert!(!must_check_subgraph_continuity(
478+
&logger,
479+
&some_current_block(9),
480+
&no_cursor,
481+
10
482+
),);
483+
484+
assert!(must_check_subgraph_continuity(
485+
&logger,
486+
&some_current_block(10),
487+
&no_cursor,
488+
10
489+
),);
490+
491+
assert!(must_check_subgraph_continuity(
492+
&logger,
493+
&some_current_block(11),
494+
&no_cursor,
495+
10
496+
),);
485497

486498
// Some cursor, subgraph current block ptr <, ==, > than manifest start block num
487499

488-
assert!(
489-
!must_check_subgraph_continuity(&logger, &no_current_block, &some_cursor, 10),
490-
);
491-
492-
assert!(
493-
!must_check_subgraph_continuity(&logger, &some_current_block(9), &some_cursor, 10),
494-
);
495-
496-
assert!(
497-
!must_check_subgraph_continuity(&logger, &some_current_block(10), &some_cursor, 10),
498-
);
499-
500-
assert!(
501-
!must_check_subgraph_continuity(&logger, &some_current_block(11), &some_cursor, 10),
502-
);
500+
assert!(!must_check_subgraph_continuity(
501+
&logger,
502+
&no_current_block,
503+
&some_cursor,
504+
10
505+
),);
506+
507+
assert!(!must_check_subgraph_continuity(
508+
&logger,
509+
&some_current_block(9),
510+
&some_cursor,
511+
10
512+
),);
513+
514+
assert!(!must_check_subgraph_continuity(
515+
&logger,
516+
&some_current_block(10),
517+
&some_cursor,
518+
10
519+
),);
520+
521+
assert!(!must_check_subgraph_continuity(
522+
&logger,
523+
&some_current_block(11),
524+
&some_cursor,
525+
10
526+
),);
503527
}
504528
}

graph/src/data/store/scalar/bigdecimal.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,8 @@ mod test {
631631

632632
#[test]
633633
fn big_decimal_stable() {
634-
let cases = [(
634+
let cases = [
635+
(
635636
"28b09c9c3f3e2fe037631b7fbccdf65c37594073016d8bf4bb0708b3fda8066a",
636637
"0.1",
637638
),
@@ -650,7 +651,8 @@ mod test {
650651
(
651652
"6b06b34cc714810072988dc46c493c66a6b6c2c2dd0030271aa3adf3b3f21c20",
652653
"98765587998098786876.0",
653-
)];
654+
),
655+
];
654656
for (hash, s) in cases.iter() {
655657
let dec = BigDecimal::from_str(s).unwrap();
656658
assert_eq!(*hash, hex::encode(crypto_stable_hash(dec)));

0 commit comments

Comments
 (0)