From adcf194bf77c693b4fec4505ef5b2115ca05ebde Mon Sep 17 00:00:00 2001 From: Paul DiPietro Date: Tue, 25 Nov 2014 09:45:00 -0500 Subject: [PATCH] Fix deprecation in selector matching test The 'find' function was changed to 'get'. Changed to reflect this warning given when running the tests. --- components/style/selector_matching.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/style/selector_matching.rs b/components/style/selector_matching.rs index 5dfe11dc046..b1c41819303 100644 --- a/components/style/selector_matching.rs +++ b/components/style/selector_matching.rs @@ -1260,9 +1260,9 @@ mod tests { let rules_list = get_mock_rules([".intro.foo", "#top"]); let mut selector_map = SelectorMap::new(); selector_map.insert(rules_list[1][0].clone()); - assert_eq!(1, selector_map.id_hash.find(&atom!("top")).unwrap()[0].declarations.source_order); + assert_eq!(1, selector_map.id_hash.get(&atom!("top")).unwrap()[0].declarations.source_order); selector_map.insert(rules_list[0][0].clone()); - assert_eq!(0, selector_map.class_hash.find(&Atom::from_slice("intro")).unwrap()[0].declarations.source_order); - assert!(selector_map.class_hash.find(&Atom::from_slice("foo")).is_none()); + assert_eq!(0, selector_map.class_hash.get(&Atom::from_slice("intro")).unwrap()[0].declarations.source_order); + assert!(selector_map.class_hash.get(&Atom::from_slice("foo")).is_none()); } }