From 2bc999a63693e668b2d0da311bc5aa74cd73da3e Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 16 Aug 2013 18:13:47 -0400 Subject: [PATCH] container: inline contains_key default method --- src/libstd/container.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstd/container.rs b/src/libstd/container.rs index 22525d4cab4..c91a53f9663 100644 --- a/src/libstd/container.rs +++ b/src/libstd/container.rs @@ -38,6 +38,7 @@ pub trait Map: Container { fn find<'a>(&'a self, key: &K) -> Option<&'a V>; /// Return true if the map contains a value for the specified key + #[inline] fn contains_key(&self, key: &K) -> bool { self.find(key).is_some() }