From 984990b1728661ecbf5f4bca28e8a7a5f7166604 Mon Sep 17 00:00:00 2001 From: Fangdun Tsai Date: Sat, 15 Jun 2024 09:22:02 +0800 Subject: [PATCH] ci: clippy --- viz-core/tests/handler.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/viz-core/tests/handler.rs b/viz-core/tests/handler.rs index 51f13c1..1559b79 100644 --- a/viz-core/tests/handler.rs +++ b/viz-core/tests/handler.rs @@ -47,7 +47,7 @@ async fn handler() -> Result<()> { } } - async fn it_works() { + async fn it_works() -> Result<()> { #[derive(thiserror::Error, Debug)] enum CustomError { #[error("not found 233")] @@ -320,9 +320,13 @@ async fn handler() -> Result<()> { assert!(!y.is_empty()); assert!(!v.is_empty()); + + let _ = v.last().unwrap().call(Request::default()).await; + + Ok(()) } - it_works().await; + let _: () = it_works().await?; Ok(()) }