Skip to content

Commit 8847a29

Browse files
committed
Updated persistent_list_map to reflect changes to MapEntry (keys are
now Rc<Value>, not Value
1 parent 6b58604 commit 8847a29

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/persistent_list_map.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,25 +178,25 @@ mod tests {
178178
let empty = PersistentListMap::Empty;
179179
let map1 = vec![
180180
MapEntry {
181-
key: Symbol::intern("a").to_value(),
181+
key: Symbol::intern("a").to_rc_value(),
182182
val: 15_i32.to_rc_value(),
183183
},
184184
MapEntry {
185-
key: Symbol::intern("b").to_value(),
185+
key: Symbol::intern("b").to_rc_value(),
186186
val: "stuff".to_rc_value(),
187187
},
188188
]
189189
.into_iter()
190190
.collect::<PersistentListMap>();
191191
println!("{}", map1);
192-
let map2 = map1.assoc(Symbol::intern("c").to_value(), 100_i32.to_rc_value());
192+
let map2 = map1.assoc(Symbol::intern("c").to_rc_value(), 100_i32.to_rc_value());
193193
println!("{}", map1);
194194
println!("{}", map2);
195-
let map3 = map1.assoc(Symbol::intern("a").to_value(), 100_i32.to_rc_value());
195+
let map3 = map1.assoc(Symbol::intern("a").to_rc_value(), 100_i32.to_rc_value());
196196
println!("{}", map1);
197197
println!("{}", map2);
198198
println!("{}", map3);
199-
let map4 = map2.assoc(Symbol::intern("a").to_value(), 100_i32.to_rc_value());
199+
let map4 = map2.assoc(Symbol::intern("a").to_rc_value(), 100_i32.to_rc_value());
200200
println!("{}", map1);
201201
println!("{}", map2);
202202
println!("{}", map3);

0 commit comments

Comments
 (0)