From 379c2a126f8dd647f6cd215b65a6845eac016667 Mon Sep 17 00:00:00 2001 From: J H Date: Fri, 20 Sep 2024 12:01:08 -0600 Subject: [PATCH] chore: Fix the tests --- src/handler/adapters.rs | 1 + tests/handler.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handler/adapters.rs b/src/handler/adapters.rs index ba61316..a54e7e9 100644 --- a/src/handler/adapters.rs +++ b/src/handler/adapters.rs @@ -178,6 +178,7 @@ where Context: crate::Context, H: HandlerTypes, { + const NO_CLI: bool = true; fn cli_command(&self) -> clap::Command { unimplemented!() } diff --git a/tests/handler.rs b/tests/handler.rs index 2d53202..dc41e8f 100644 --- a/tests/handler.rs +++ b/tests/handler.rs @@ -239,7 +239,7 @@ async fn test_server() { "bar", ] .iter() - .map(|s| OsString::from(s)), + .map(OsString::from), ) .unwrap(); shutdown.shutdown()