Skip to content

Commit c509610

Browse files
committed
fmt
1 parent 4ed6ecf commit c509610

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

tests/integration/src/typehints.rs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,11 @@ fn make_foo_handler() -> ClassEntity<()> {
8181
phper::ok(arguments[0].clone())
8282
})
8383
.argument(
84-
Argument::new("foo")
85-
.with_type_hint(ArgumentTypeHint::ClassEntry(String::from(I_FOO))),
84+
Argument::new("foo").with_type_hint(ArgumentTypeHint::ClassEntry(String::from(I_FOO))),
8685
)
87-
.return_type(ReturnType::new(ReturnTypeHint::ClassEntry(
88-
String::from(I_FOO),
89-
)));
86+
.return_type(ReturnType::new(ReturnTypeHint::ClassEntry(String::from(
87+
I_FOO,
88+
))));
9089

9190
class
9291
}
@@ -554,19 +553,17 @@ fn make_return_typehint_class() -> ClassEntity<()> {
554553
.add_method("returnClassEntry", Visibility::Public, move |_, _| {
555554
phper::ok(())
556555
})
557-
.return_type(ReturnType::new(ReturnTypeHint::ClassEntry(
558-
String::from(I_FOO),
559-
)));
556+
.return_type(ReturnType::new(ReturnTypeHint::ClassEntry(String::from(
557+
I_FOO,
558+
))));
560559

561560
class
562561
.add_method(
563562
"returnClassEntryNullable",
564563
Visibility::Public,
565564
move |_, _| phper::ok(()),
566565
)
567-
.return_type(
568-
ReturnType::new(ReturnTypeHint::ClassEntry(String::from(I_FOO))).allow_null(),
569-
);
566+
.return_type(ReturnType::new(ReturnTypeHint::ClassEntry(String::from(I_FOO))).allow_null());
570567

571568
class
572569
.add_method("returnNever", Visibility::Public, move |_, _| phper::ok(()))

0 commit comments

Comments
 (0)