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]