From 331a6ccca7c5369f8ee52f27aaf2908033d3cd21 Mon Sep 17 00:00:00 2001 From: Fangdun Tsai Date: Sun, 23 Jun 2024 14:31:24 +0800 Subject: [PATCH] fix: clippy --- viz-core/tests/handler.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/viz-core/tests/handler.rs b/viz-core/tests/handler.rs index 10e7d60..93adf4d 100644 --- a/viz-core/tests/handler.rs +++ b/viz-core/tests/handler.rs @@ -235,7 +235,8 @@ async fn handler() -> Result<()> { ) .catch_unwind(|_: Box| async move { panic!("Custom Error 2") }); - assert!(Handler::call(&aa, Request::new(Body::Empty)).await.is_ok()); + let resp: Result = Handler::call(&aa, Request::new(Body::Empty)).await; + assert!(resp.is_ok()); let th = MyAround { name: String::new(),