Update code to use unwrap method.

This commit is contained in:
Jack Moffitt
2013-03-27 10:07:42 -06:00
parent e9c5ee5c26
commit 30a5e72b43
+1 -1
View File
@@ -121,7 +121,7 @@ pub impl<KeyRefType: Copy + AbstractCFTypeRef, ValueRefType: Copy + AbstractCFTy
if value.is_none() {
fail!(fmt!("No entry found for key: %?", key));
}
return option::unwrap(value);
return value.unwrap();
}
fn each(&self, blk: &fn(&KeyRefType, &ValueRefType) -> bool) {