Skip to content

Commit 58af242

Browse files
committed
Revert "clippy"
This reverts commit 59b8976.
1 parent 59b8976 commit 58af242

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/integration/src/classes.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ fn integrate_dependent_classes(module: &mut Module) {
244244
.add_static_method("createB", Visibility::Public, move |_| {
245245
let borrow = b_ref.borrow();
246246
let b_state: &StateClass<()> = borrow.as_ref().unwrap();
247-
let val = b_state.init_object()?;
248-
Ok::<_, phper::Error>(val)
247+
Ok::<_, phper::Error>(b_state.init_object()?)
249248
})
250249
.return_type(ReturnType::new(ReturnTypeHint::ClassEntry(B_CLS.into())));
251250
}
@@ -256,8 +255,7 @@ fn integrate_dependent_classes(module: &mut Module) {
256255
.add_static_method("createA", Visibility::Public, move |_| {
257256
let borrow = a_ref.borrow();
258257
let a_state: &StateClass<()> = borrow.as_ref().unwrap();
259-
let val = a_state.init_object()?;
260-
Ok::<_, phper::Error>(val)
258+
Ok::<_, phper::Error>(a_state.init_object()?)
261259
})
262260
.return_type(ReturnType::new(ReturnTypeHint::ClassEntry(A_CLS.into())));
263261
}

0 commit comments

Comments
 (0)