From 73af29224be0dcfda148f443a702598dddf3147e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98systems?= <> Date: Fri, 7 Feb 2020 16:12:22 +1000 Subject: [PATCH] asserts fix --- actix-http/src/extensions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-http/src/extensions.rs b/actix-http/src/extensions.rs index 8d8388348..5114ce140 100644 --- a/actix-http/src/extensions.rs +++ b/actix-http/src/extensions.rs @@ -75,7 +75,7 @@ fn test_remove() { assert!(map.get::().is_some()); map.remove::(); - assert!(!map.get::().is_some()); + assert!(map.get::().is_none()); } #[test] @@ -148,7 +148,7 @@ fn test_composition() { map.insert(Magi(Homura { attempts: 0 })); map.insert(Magi(Mami { guns: 999 })); - assert_eq!(false, map.get::>().unwrap().0.god); + assert!(!map.get::>().unwrap().0.god); assert_eq!(0, map.get::>().unwrap().0.attempts); assert_eq!(999, map.get::>().unwrap().0.guns); }