From 55340ffe1b9edb50ade128f2c0b9671186afef09 Mon Sep 17 00:00:00 2001 From: Spencer Ferris <3319370+spencewenski@users.noreply.github.com> Date: Wed, 15 May 2024 13:13:30 -0700 Subject: [PATCH] Fix clippy warning --- src/service/http/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/http/builder.rs b/src/service/http/builder.rs index 4a64f5c1..c2cf326d 100644 --- a/src/service/http/builder.rs +++ b/src/service/http/builder.rs @@ -229,7 +229,7 @@ mod tests { // Assert assert_eq!(builder.middleware.len(), 1); - assert!(builder.middleware.get("test").is_some()); + assert!(builder.middleware.contains_key("test")); } #[test] @@ -293,7 +293,7 @@ mod tests { // Assert assert_eq!(builder.initializers.len(), 1); - assert!(builder.initializers.get("test").is_some()); + assert!(builder.initializers.contains_key("test")); } #[test]