1
0
Fork 0

Remove dbg!

This commit is contained in:
Pcornat 2023-09-20 20:53:35 +02:00
parent 0ee7c433e3
commit fd7416456b
Signed by: Pcornat
GPG Key ID: 2F3932FF46D9ECA0
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ pub fn solve_part2(content: &str) -> color_eyre::Result<u64> {
let total_space = 70000000_u64;
let tree = generate_tree(content)?;
let used_space = total_size(&tree, tree.get(tree.root_node_id().unwrap())?)?;
let free_space = total_space.checked_sub(dbg!(used_space)).unwrap();
let free_space = total_space.checked_sub(used_space).unwrap();
let needed_free_space = 30000000_u64;
let minimum_space_to_free = needed_free_space.checked_sub(free_space).unwrap();