[librsvg: 48/95] PropertyBag: implement PropertyBagIter in terms of PropertyBagCStrIter
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 48/95] PropertyBag: implement PropertyBagIter in terms of PropertyBagCStrIter
- Date: Thu, 22 Feb 2018 03:17:10 +0000 (UTC)
commit 1baa427498a870ce1fccc4b861ca7c4c6f0b16c9
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Feb 20 18:42:03 2018 -0600
PropertyBag: implement PropertyBagIter in terms of PropertyBagCStrIter
rust/src/property_bag.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rust/src/property_bag.rs b/rust/src/property_bag.rs
index c8d462c8..4335222a 100644
--- a/rust/src/property_bag.rs
+++ b/rust/src/property_bag.rs
@@ -10,7 +10,7 @@ pub struct PropertyBag<'a>(HashMap<&'a CStr, &'a CStr>);
pub struct OwnedPropertyBag(HashMap<CString, CString>);
-pub struct PropertyBagIter<'a>(hash_map::Iter<'a, &'a CStr, &'a CStr>);
+pub struct PropertyBagIter<'a>(PropertyBagCStrIter<'a>);
pub struct PropertyBagCStrIter<'a>(hash_map::Iter<'a, &'a CStr, &'a CStr>);
@@ -87,7 +87,7 @@ impl<'a> PropertyBag<'a> {
}
pub fn iter(&self) -> PropertyBagIter {
- PropertyBagIter(self.0.iter())
+ PropertyBagIter(self.cstr_iter())
}
pub fn cstr_iter(&self) -> PropertyBagCStrIter {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]