mirror of
https://github.com/urbit/ares.git
synced 2024-12-23 05:12:15 +03:00
clean up of Cold Nounable PR (#277)
* remove cold into_noun prints * deref the reference
This commit is contained in:
parent
f740d85336
commit
b4de20e9c0
@ -1033,7 +1033,7 @@ impl<T: Nounable + Copy + mem::Preserve> Nounable for Hamt<T> {
|
|||||||
for slice in reverse {
|
for slice in reverse {
|
||||||
for (key, value) in slice {
|
for (key, value) in slice {
|
||||||
let value_noun = value.into_noun(stack);
|
let value_noun = value.into_noun(stack);
|
||||||
let items = T(stack, &[key, value_noun]);
|
let items = T(stack, &[*key, value_noun]);
|
||||||
list = T(stack, &[items, list]);
|
list = T(stack, &[items, list]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1077,20 +1077,6 @@ impl Nounable for Cold {
|
|||||||
let mut root_to_paths_noun = D(0);
|
let mut root_to_paths_noun = D(0);
|
||||||
let mut battery_to_paths_noun = D(0);
|
let mut battery_to_paths_noun = D(0);
|
||||||
let mut path_to_batteries_noun = D(0);
|
let mut path_to_batteries_noun = D(0);
|
||||||
unsafe {
|
|
||||||
println!(
|
|
||||||
"root_to_paths.iter().count(): {}",
|
|
||||||
(*cold_mem).root_to_paths.iter().count()
|
|
||||||
);
|
|
||||||
println!(
|
|
||||||
"battery_to_paths.iter().count(): {}",
|
|
||||||
(*cold_mem).battery_to_paths.iter().count()
|
|
||||||
);
|
|
||||||
println!(
|
|
||||||
"path_to_batteries.iter().count(): {}",
|
|
||||||
(*cold_mem).path_to_batteries.iter().count()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
unsafe {
|
unsafe {
|
||||||
for slice in (*cold_mem).root_to_paths.iter() {
|
for slice in (*cold_mem).root_to_paths.iter() {
|
||||||
for (root, paths) in slice {
|
for (root, paths) in slice {
|
||||||
|
Loading…
Reference in New Issue
Block a user