Skip to content

Commit 59b8976

Browse files
committed
clippy
1 parent 7f4d4c4 commit 59b8976

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration/src/classes.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ 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-
Ok::<_, phper::Error>(b_state.init_object()?)
247+
let val = b_state.init_object()?;
248+
Ok::<_, phper::Error>(val)
248249
})
249250
.return_type(ReturnType::new(ReturnTypeHint::ClassEntry(B_CLS.into())));
250251
}
@@ -255,7 +256,8 @@ fn integrate_dependent_classes(module: &mut Module) {
255256
.add_static_method("createA", Visibility::Public, move |_| {
256257
let borrow = a_ref.borrow();
257258
let a_state: &StateClass<()> = borrow.as_ref().unwrap();
258-
Ok::<_, phper::Error>(a_state.init_object()?)
259+
let val = a_state.init_object()?;
260+
Ok::<_, phper::Error>(val)
259261
})
260262
.return_type(ReturnType::new(ReturnTypeHint::ClassEntry(A_CLS.into())));
261263
}

0 commit comments

Comments
 (0)