diff --git a/packages/fuel-indexer-tests/trybuild/fail_if_abi_contains_reserved_fuel_type.rs b/packages/fuel-indexer-tests/trybuild/fail_if_abi_contains_reserved_fuel_type.rs index 651fe3004..bacedec42 100644 --- a/packages/fuel-indexer-tests/trybuild/fail_if_abi_contains_reserved_fuel_type.rs +++ b/packages/fuel-indexer-tests/trybuild/fail_if_abi_contains_reserved_fuel_type.rs @@ -1,7 +1,8 @@ -extern crate alloc; use fuel_indexer_utils::prelude::*; -#[indexer(manifest = "packages/fuel-indexer-tests/trybuild/invalid_abi_type_simple_wasm.yaml")] +#[indexer( + manifest = "packages/fuel-indexer-tests/trybuild/invalid_abi_type_simple_wasm.yaml" +)] mod indexer { fn function_one(event: BlockHeight) { let BlockHeight { id, account } = event; diff --git a/packages/fuel-indexer-tests/trybuild/fail_if_arg_not_passed_to_handler_function.rs b/packages/fuel-indexer-tests/trybuild/fail_if_arg_not_passed_to_handler_function.rs index 211cf47f4..60667f43b 100644 --- a/packages/fuel-indexer-tests/trybuild/fail_if_arg_not_passed_to_handler_function.rs +++ b/packages/fuel-indexer-tests/trybuild/fail_if_arg_not_passed_to_handler_function.rs @@ -1,4 +1,3 @@ -extern crate alloc; use fuel_indexer_utils::prelude::*; #[no_mangle] @@ -13,7 +12,10 @@ fn ff_put_many_to_many_record(_inp: ()) {} #[indexer(manifest = "packages/fuel-indexer-tests/trybuild/simple_wasm.yaml")] mod indexer { fn function_one() { - let t1 = Thing1 { id: uid([1]), account: Address::default() }; + let t1 = Thing1 { + id: uid([1]), + account: Address::default(), + }; t1.save(); } } diff --git a/packages/fuel-indexer-tests/trybuild/fail_if_attribute_abi_arg_includes_invalid_type.rs b/packages/fuel-indexer-tests/trybuild/fail_if_attribute_abi_arg_includes_invalid_type.rs index e05167111..1dce61ae7 100644 --- a/packages/fuel-indexer-tests/trybuild/fail_if_attribute_abi_arg_includes_invalid_type.rs +++ b/packages/fuel-indexer-tests/trybuild/fail_if_attribute_abi_arg_includes_invalid_type.rs @@ -1,4 +1,3 @@ -extern crate alloc; use fuel_indexer_utils::prelude::indexer; #[no_mangle] diff --git a/packages/fuel-indexer-tests/trybuild/fail_if_attribute_manifest_schema_arg_is_invalid.rs b/packages/fuel-indexer-tests/trybuild/fail_if_attribute_manifest_schema_arg_is_invalid.rs index c9215559d..75ca8628a 100644 --- a/packages/fuel-indexer-tests/trybuild/fail_if_attribute_manifest_schema_arg_is_invalid.rs +++ b/packages/fuel-indexer-tests/trybuild/fail_if_attribute_manifest_schema_arg_is_invalid.rs @@ -1,10 +1,11 @@ -extern crate alloc; use fuel_indexer_utils::prelude::*; #[no_mangle] fn ff_log_data(_inp: ()) {} -#[indexer(manifest = "packages/fuel-indexer-tests/trybuild/invalid_schema_simple_wasm.yaml")] +#[indexer( + manifest = "packages/fuel-indexer-tests/trybuild/invalid_schema_simple_wasm.yaml" +)] mod indexer { fn function_one(event: SomeEvent) { let SomeEvent { id, account } = event; diff --git a/packages/fuel-indexer-tests/trybuild/fail_if_ident_not_defined_in_abi.rs b/packages/fuel-indexer-tests/trybuild/fail_if_ident_not_defined_in_abi.rs index 2e0ccd8f2..c09da16c5 100644 --- a/packages/fuel-indexer-tests/trybuild/fail_if_ident_not_defined_in_abi.rs +++ b/packages/fuel-indexer-tests/trybuild/fail_if_ident_not_defined_in_abi.rs @@ -1,4 +1,3 @@ -extern crate alloc; use fuel_indexer_utils::prelude::*; #[indexer(manifest = "packages/fuel-indexer-tests/trybuild/simple_wasm.yaml")] diff --git a/packages/fuel-indexer-tests/trybuild/fail_if_indexer_module_is_empty.rs b/packages/fuel-indexer-tests/trybuild/fail_if_indexer_module_is_empty.rs index 404f326dd..f024c3d23 100644 --- a/packages/fuel-indexer-tests/trybuild/fail_if_indexer_module_is_empty.rs +++ b/packages/fuel-indexer-tests/trybuild/fail_if_indexer_module_is_empty.rs @@ -1,4 +1,3 @@ -extern crate alloc; use fuel_indexer_utils::prelude::*; #[no_mangle] diff --git a/packages/fuel-indexer-tests/trybuild/fail_if_non_function_patterns_included_in_module.rs b/packages/fuel-indexer-tests/trybuild/fail_if_non_function_patterns_included_in_module.rs index 22b7f745d..1b8f8b91a 100644 --- a/packages/fuel-indexer-tests/trybuild/fail_if_non_function_patterns_included_in_module.rs +++ b/packages/fuel-indexer-tests/trybuild/fail_if_non_function_patterns_included_in_module.rs @@ -1,13 +1,10 @@ -extern crate alloc; use fuel_indexer_utils::prelude::*; #[indexer(manifest = "packages/fuel-indexer-tests/trybuild/simple_wasm.yaml")] mod indexer { - mod some_disallowed_module { + mod some_disallowed_module {} - } - fn function_one(event: SomeEvent) { let SomeEvent { id, account } = event; diff --git a/packages/fuel-indexer-tests/trybuild/fail_if_unsupported_type_used_in_handler_args.rs b/packages/fuel-indexer-tests/trybuild/fail_if_unsupported_type_used_in_handler_args.rs index d97caf827..1c29e307c 100644 --- a/packages/fuel-indexer-tests/trybuild/fail_if_unsupported_type_used_in_handler_args.rs +++ b/packages/fuel-indexer-tests/trybuild/fail_if_unsupported_type_used_in_handler_args.rs @@ -1,4 +1,3 @@ -extern crate alloc; use fuel_indexer_utils::prelude::*; #[indexer(manifest = "packages/fuel-indexer-tests/trybuild/simple_wasm.yaml")] diff --git a/packages/fuel-indexer-tests/trybuild/pass_if_indexer_is_valid_multi_type.rs b/packages/fuel-indexer-tests/trybuild/pass_if_indexer_is_valid_multi_type.rs index 6fd0a8cb5..6103fcb33 100644 --- a/packages/fuel-indexer-tests/trybuild/pass_if_indexer_is_valid_multi_type.rs +++ b/packages/fuel-indexer-tests/trybuild/pass_if_indexer_is_valid_multi_type.rs @@ -1,4 +1,3 @@ -extern crate alloc; use fuel_indexer_utils::prelude::*; #[no_mangle] diff --git a/packages/fuel-indexer-tests/trybuild/pass_if_indexer_is_valid_single_type.rs b/packages/fuel-indexer-tests/trybuild/pass_if_indexer_is_valid_single_type.rs index dc6cd2e88..4f9532d56 100644 --- a/packages/fuel-indexer-tests/trybuild/pass_if_indexer_is_valid_single_type.rs +++ b/packages/fuel-indexer-tests/trybuild/pass_if_indexer_is_valid_single_type.rs @@ -1,4 +1,3 @@ -extern crate alloc; use fuel_indexer_utils::prelude::*; #[no_mangle] diff --git a/packages/fuel-indexer-tests/trybuild/pass_if_unsupported_types_are_used.rs b/packages/fuel-indexer-tests/trybuild/pass_if_unsupported_types_are_used.rs index 09524cbd5..c140b5bba 100644 --- a/packages/fuel-indexer-tests/trybuild/pass_if_unsupported_types_are_used.rs +++ b/packages/fuel-indexer-tests/trybuild/pass_if_unsupported_types_are_used.rs @@ -1,4 +1,3 @@ -extern crate alloc; use fuel_indexer_utils::prelude::*; #[no_mangle]