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); }